[rules-users] Configuring Drools Guvnor with Nuxeo ECM?

2009-12-22 Thread msnkishore
Hi all, I am new to Drools and It's mentioned in user guide that Drools Guvnor uses Jackrabbit by default and we can configure the backend RDBMS. Is it possible to configure Drools Guvnor JCR to Nuxeo? Where can I find the documentation for this? Thanks, Kishore -- View this message in conte

Re: [rules-users] import static class?

2009-12-22 Thread HonorGod
You can definitely use your static constants in decision table or in drl files. Jane James wrote: > > Can we do a import static MyClass in drools? I have a class only contains > some constants that to be referenced in my rules, but I can't import > static the class. I am wondering if this is s

Re: [rules-users] An issue when Droools fusion is run in the stream mode with 'multithreadEvaluation'

2009-12-22 Thread indika kumara
I have created a JIRA [1] and attached a test case https://jira.jboss.org/jira/browse/JBRULES-2389 Tx indika 2009/12/15 Edson Tirelli > >Indika, > >I will need to reproduce the problem in order to investigate and fix it. > If you can create an isolated test case and open a jira for it

[rules-users] import static class?

2009-12-22 Thread Jane James
Can we do a import static MyClass in drools? I have a class only contains some constants that to be referenced in my rules, but I can't import static the class. I am wondering if this is supported or not. thanks ___ rules-users mailing list

Re: [rules-users] verifying 'is not null' in decision table?

2009-12-22 Thread HonorGod
Woh...Thomas, this input is really helpful and made my day. Just have one more question...If i were to also check one Date is after or before the other Date how do i check that with a conditions. [so basically i want to check Date1.isAfter(Date2) as a condition]. Thanks Swindells, Thomas wro

Re: [rules-users] Sessions Sharing KnowledgeBase

2009-12-22 Thread Edson Tirelli
Cool, thanks for letting us know about the results. Regarding my suggestion, just to be clear, you would still use one stateful session for each of your requests. The only difference is that all sessions would be created from a shared kbase, meaning you would be able to stop building kbases

Re: [rules-users] Compile Challenges December 20, 2009

2009-12-22 Thread Pete Carapetyan
Thanks Geoffrey, adding a repository such as JBoss's to one's maven settings.xml file (or to nexus if one's shop uses that) is a standard operating procedure in most shops so it shouldn't be a problem, once the jars are there, and kept up to date. Not a problem at all. One can even add a repository

Re: [rules-users] Compile Challenges December 20, 2009

2009-12-22 Thread Geoffrey De Smet
Pete, That should work :) But the jars are in the jboss repo, which sadly isn't synced to the central maven repo. Just try: repository.jboss.org http://repository.jboss.org/maven2 false

Re: [rules-users] New type of Score and solving time very hight

2009-12-22 Thread Geoffrey De Smet
With kind regards, Geoffrey De Smet dmzpippo-dro...@yahoo.it schreef: > Hi Geoffrey, > > I'm developing the algorithm for Vehicle Routing Problem with Time Windows > (written by Gendreau Herz and Laporte). To do it I need a new type of scoring > and I have developed DOUBLE_SCORE (double hard

Re: [rules-users] Compile Challenges December 20, 2009

2009-12-22 Thread Pete Carapetyan
Geoffrey I must be making this much more difficult to understand. All I want to do is the same thing I do for any other project which I use, and have used for years. Add a dependency to the project. Then the code compiles. Nothing more complex than that should be required for a user (does not app

Re: [rules-users] Compile Challenges December 20, 2009

2009-12-22 Thread Geoffrey De Smet
Pete Carapetyan schreef: > Someday maybe you'll just be able to use drools planner examples in a > single easy to use maven already eclipsed project without having to > download and build source from svn. When it is time, it will happen. > If it was that important to me, I guess I'd just do it

Re: [rules-users] Sessions Sharing KnowledgeBase

2009-12-22 Thread malkhafaji
Edson, I just want to report back that when I upgraded to M1, I was able to get through 20 or 30 more requests before I got the deadlock again. Then, I used the link you sent me and downloaded the snapshot branch, and was able to go through 875 requests (so far and running) without a deadlock!! I

Re: [rules-users] Sessions Sharing KnowledgeBase

2009-12-22 Thread Edson Tirelli
Well, May 19th I guess you still have Drools 5.0.0. You should at least be using 5.0.1. Anyway, latest artifacts are here: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/ "I am sure there are many ways to get it working on a sharing knowledge base," Ye

Re: [rules-users] Sessions Sharing KnowledgeBase

2009-12-22 Thread malkhafaji
Edson, Thank you for replying to my question. I haven't tried the new release since May 19th of this year. Are you talking about the binaries (Drools 5.1.0.M1 Binaries)? Should I go ahead and try that? To answer your question about not sharing KnowledgeBase for all requests, we have a very advan

Re: [rules-users] Sessions Sharing KnowledgeBase

2009-12-22 Thread Edson Tirelli
Hi, I fixed a problem related to deadlock when sharing packages among multiple kbases a couple weeks ago. Not sure if it is the same, but try trunk and let me know, plz. Meanwhile, I am curious why you can't simply create a kbase with all your rules and share the kbase among all your req

Re: [rules-users] Problem calling rules from a flow

2009-12-22 Thread Kris Verlaenen
Strange, I just tried your code and it does seem to print out the Hello world statement when executing the rule. I attached the Eclipse project that I created from this, could you try this? It might be valuable to figure out the differences in the log files (I included mine in the zip file as wel

Re: [rules-users] verifying 'is not null' in decision table?

2009-12-22 Thread Swindells, Thomas
You can probably do what you need by using XOR-GROUPS (activation groups). If your spreadsheet is configured to be sequential (or you explicitly set rule priority levels) then only the highest priority matching rule in a particular xor-group will be fired. So you may be able to specify the ru

[rules-users] Adding/removing DRL file to an existing package

2009-12-22 Thread orchid
Hi, Is it possible to add/remove a drl file to an existing package? Thanks, Orchid -- View this message in context: http://n3.nabble.com/Adding-removing-DRL-file-to-an-existing-package-tp97244p97244.html Sent from the Drools - User mailing list archive at Nabble.com. _

Re: [rules-users] When changing rules what should be passed to Drools engine?

2009-12-22 Thread orchid
Many Thanks!!! Esteban Aliverti wrote: > > Yes, all of the rules inside the DRL file will be compiled again even if > they didn't change. We are working on a better solution for your problem > using Knowledge Agents. You will be hearing notices soon (I hope ;-) ). > > Best, > > On Tue, Dec 22

Re: [rules-users] When changing rules what should be passed to Drools engine?

2009-12-22 Thread Esteban Aliverti
Yes, all of the rules inside the DRL file will be compiled again even if they didn't change. We are working on a better solution for your problem using Knowledge Agents. You will be hearing notices soon (I hope ;-) ). Best, On Tue, Dec 22, 2009 at 9:51 AM, orchid wrote: > > > > Esteban Aliverti

Re: [rules-users] When changing rules what should be passed to Drools engine?

2009-12-22 Thread orchid
Esteban Aliverti wrote: > > Hi, > It will be better if you can pass just the modified rule, because rules > need > to be compiled before added to the kbase and that is an expensive task. > > Best > Thanks Esteban! If my .drl file contains several rules and I changed only one of them, I must

Re: [rules-users] When changing rules what should be passed to Drools engine?

2009-12-22 Thread Esteban Aliverti
Hi, It will be better if you can pass just the modified rule, because rules need to be compiled before added to the kbase and that is an expensive task. Best On Tue, Dec 22, 2009 at 6:11 AM, orchid wrote: > > Hi All, > > I'm newbie to Drools and would like to ask some questions: > 1. When chang

[rules-users] New type of Score and solving time very hight

2009-12-22 Thread dmzpippo-drools
Hi Geoffrey, I'm developing the algorithm for Vehicle Routing Problem with Time Windows (written by Gendreau Herz and Laporte). To do it I need a new type of scoring and I have developed DOUBLE_SCORE (double hard and double soft). If you wont I can send you this code. I write you because have a

Re: [rules-users] verifying 'is not null' in decision table?

2009-12-22 Thread HonorGod
Thanks Thomas. I got this part now. But I guess the real scenarios I have been looking is - I have 4 different date fields and I need to check if they are not null and set a priority using decision table. Lets say I have Date 1 , Date 2 , Date 3 , Date 4. If Date 1 is not null and rest of them

Re: [rules-users] verifying 'is not null' in decision table?

2009-12-22 Thread Swindells, Thomas
The key thing to remember with decision tables is that currently a column is only included if there is a value in the rule row and that value will always be included in the rule. The easiest way to do this is to have a condition in the form "firstName != $param" and then have null as the cell va

[rules-users] When changing rules what should be passed to Drools engine?

2009-12-22 Thread orchid
Hi All, I'm newbie to Drools and would like to ask some questions: 1. When changing a rule, should I pass to the engine only what was change or the whole rule set? 2. What happens from the point the rule was written till it arrives the engine itself? Thanks in advance B-), Orchid. -- View th

Re: [rules-users] A quick survey of application areas

2009-12-22 Thread Leonardo Gomes
Travel industry: policies for corporate travel, context/user-based cross-selling during booking flow. 2009/12/18 Knapp, Barry > Railinc, Inc. uses Drools expert for all Railroad equipment validations > as well as billing processing. > > We have also used it for migrating/converting railroad equ