[rules-users] Global variables thread safety

2008-12-15 Thread Waleed Zedan
Hi, I am developing a web service that evaluates risks on a certain fact, I accumulate the risks in the working memory (stateless working memory), but i need to return the asserted risks from the web service the web method signature is like public Risks assertFact(Fact fact) where Risks:

[rules-users] Associate Agenda Group with Guvnor Category

2008-12-15 Thread David Sinclair
I don't believe this is currently supported, but is there an "easy" way to associate rules within a category to an agenda group? For example, if I have a category named Validation Rules, I would like to have the burden removed from the user for placing the rule in the Validation agenda group. than

Re: [rules-users] Unable to resolve token on function call with mvel dialect

2008-12-15 Thread Edson Tirelli
Looks like a bug. I will talk to mvel author. []s Edson 2008/12/15 Olivier THIERRY > Well ... I found something very strange with Drools and mvel dialect > ... It looks like Drools doesn't like points in function parameters ! > > I made this very simple test with a log function and the

Re: [rules-users] Unable to resolve token on function call with mvel dialect

2008-12-15 Thread Edson Tirelli
BTW, what version of MVEL are you using? 2008/12/15 Olivier THIERRY > Well ... I found something very strange with Drools and mvel dialect > ... It looks like Drools doesn't like points in function parameters ! > > I made this very simple test with a log function and the easier rule > you can

[rules-users] How to use KnowledgeAgent in the "old manner" (just like RuleAgent)

2008-12-15 Thread psentosa
Hi all, Can anyone give some explanation / examples on this? The docu is still using ruleagent. I found some piece of codes within the KnowledgeAgentFactory, but I saw that it uses the configuration object. I personally prefer the old style by using a property file in which the configuration is d

Re: [rules-users] RuleFlows created in Drools V5M2 can't be parsed in V5M4

2008-12-15 Thread Mark Proctor
keithnielsen wrote: It appears that ruleflows created in V5M2 can't be parsed in V5M4. We changed the namespace from 4.0 to 5.0. If you update the namespace at the top, it should now work. mark ___ rules-users mailing list rules-users@lists.jbos

Re: [rules-users] Unable to resolve token on function call with mvel dialect

2008-12-15 Thread Olivier THIERRY
Well ... I found something very strange with Drools and mvel dialect ... It looks like Drools doesn't like points in function parameters ! I made this very simple test with a log function and the easier rule you can have : function void log (String message) { System.out.println(message);

[rules-users] RuleFlows created in Drools V5M2 can't be parsed in V5M4

2008-12-15 Thread keithnielsen
It appears that ruleflows created in V5M2 can't be parsed in V5M4. -- View this message in context: http://www.nabble.com/RuleFlows-created-in-Drools-V5M2-can%27t-be-parsed-in-V5M4-tp21015946p21015946.html Sent from the drools - user mailing list archive at Nabble.com.

Re: [rules-users] which libraries to use api or core

2008-12-15 Thread keithnielsen
I have been trying to upgrade to V5M4 with little success. I have all the Drools libraries in a single Eclipse plug-in. I have both API and Core libraries which is certainly confusing Eclipse and any plug-ins that are dependent on it. I have also tried just using Core and deleting API from my work

Re: [rules-users] Unable to resolve token on function call with mvel dialect

2008-12-15 Thread Olivier THIERRY
Thanks Edson. Here it is : rule "CALCUL_RELICAT_CP" salience 8 no-loop when not $RELICAT_CP : VOCounter (code=="RELICAT_CP") $startDate : RuleDate(name=="startDate") $endDate : RuleDate(name=="endDate") $SOLDE_

Re: [rules-users] Unable to resolve token on function call with mvel dialect

2008-12-15 Thread Edson Tirelli
Can you plz show us the DRL instead of the DSLR for your rule? use the DRLViewer tab for that... 2008/12/15 Olivier THIERRY > Hi, > > I use drools 4.0.7 and I encounter a problem calling a function from a > rule written for mvel dialect. > > The function I need to call has this signature :

[rules-users] which libraries to use api or core

2008-12-15 Thread Brody Bach
Hi drools-developers, I'd like to integrate drools in my application. I read in some threads that the structure of the libs has been changed in the newest version, so that same classes exist in several jars. So, if I am to use a class from the old one (core), is it safe enough for my appl? I mea

RE: [rules-users] shadow proxy nullpointerexception

2008-12-15 Thread Gras, Patrick
Hello, could you send the code of FirstObj ? I had some problem once with final fields / method because the shadowProxy is in fact a subclass of your class so it can't proxy final things... -Patrick -Message d'origine- De : rules-users-boun...@lists.jboss.org [mailto:rules-users-boun..

[rules-users] Unable to resolve token on function call with mvel dialect

2008-12-15 Thread Olivier THIERRY
Hi, I use drools 4.0.7 and I encounter a problem calling a function from a rule written for mvel dialect. The function I need to call has this signature : function VOCounter createCounter(org.drools.spi.KnowledgeHelper drools, String code, Number number) When I call this function, I want to ass

[rules-users] DSL: concatenating DSLs using "and" and "or"

2008-12-15 Thread Chong Minsk Goh
Hi, We are currently using Drools to enable conditional routing for our application. We are using DSLs to make it more user friendly. Using Eclipse DSL editor, I noticed that there is an error (Duplicate Declaration of variable) if I use "and" to concatenate 2 DSL statements using the same variab