Re: [rules-users] Planner - scoring with Java (not DRL)

2012-03-19 Thread ge0ffrey
There is a lot of demand for this feature and its not a big change, so I am going to prioritize it. Keep an eye on the git repo in the next few weekends. I have to finish a vrp improvement first (chaining swap), but that shouldn't take more then 1 weekend. -- View this message in context: http://

Re: [rules-users] Persistence in fireUntilHalt() loop

2012-03-19 Thread Alberto R. Galdo
Sure! Drools does JPA persistence using this set of managers: https://github.com/droolsjbpm/drools/blob/master/drools-persistence-jpa/src/main/java/org/drools/persistence/jpa/JpaPersistenceContextManager.java https://github.com/droolsjbpm/drools/blob/master/drools-persistence-jpa/src/main/java/

[rules-users] Planner - scoring with Java (not DRL)

2012-03-19 Thread David Erickson
Hi I saw the JIRA issue on this topic here: https://issues.jboss.org/browse/JBRULES-3367 I'm wondering if any work has been done to enable this yet, or if not if this is something that could trivially be done? I have some very complicated domain logic to determine a score and shudder to consid

Re: [rules-users] Exception in thread "main" java.lang.ClassCastException:

2012-03-19 Thread srinivasasanda
Thank you Esteban Thank you very much -- View this message in context: http://drools.46999.n3.nabble.com/Exception-in-thread-main-java-lang-ClassCastException-tp3838503p3841031.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] Metadata in Guvnor-created rules

2012-03-19 Thread Michael Anstis
The "Metadata" under the "Attributes" tab is stored in the JCR repository and does not form part of the KnowledgeBase. You can add metadata that is part of the KnowledgeBase using using the "Show options" at the bottom of the Guided Rule Editor and adding metadata. This metadata appears in rules

Re: [rules-users] Data comparing in CONDITION column decision table

2012-03-19 Thread Michael Anstis
This is true, but be aware that if a cell value in the Template data is empty the whole Fact Pattern is omitted. For example:- rule "Discount @{row.rowNumber}" when Account( $v : @{field} != null ) $c : Customer( @{field} == $v , accno == @{accno} ) then $c.setDiscount(1); end If

Re: [rules-users] Persistence in fireUntilHalt() loop

2012-03-19 Thread Marco Rietveld
Sorry, to be clear: a github link to the code you quoted is what I was after. 03/19/2012 10:33 PM, Marco Rietveld: Alberto, Sorry to hear that the bug isn't fixed. Could you clarify what you mean by these points?    - Dro

Re: [rules-users] Persistence in fireUntilHalt() loop

2012-03-19 Thread Marco Rietveld
Alberto, Sorry to hear that the bug isn't fixed. Could you clarify what you mean by these points?    - Drools and JBPM have different persistence managers.    - Drools uses JTA for persistence and JBPM does not. I was pretty sure you could specify a

Re: [rules-users] Data comparing in CONDITION column decision table

2012-03-19 Thread Vincent LEGENDRE
Hi Instead of using a workaround, did you have a look to rule templates ? - under guvnor : http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-guvnor-docs/html_single/index.html#d0e1143 - drl : http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-expert-docs/html_single/index.html#d0e

Re: [rules-users] Drools silently fails when I screw up

2012-03-19 Thread barnesjd
Thanks! I'll add that and see if it helps me answer some of my other questions. Joe -- View this message in context: http://drools.46999.n3.nabble.com/Drools-silently-fails-when-I-screw-up-tp3839290p3840381.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] Drools silently fails when I screw up

2012-03-19 Thread ge0ffrey
barnesjd wrote > > Hi everyone. I'm new to Drools (using 5.2). I'm using it in Grails > (2.0.1) with the drools-gorm plugin (0.5.6) (warning: Grails is also new > for me). I've noticed that whenever I do something that is perhaps > syntactically invalid, my rules simply don't fire. Given that

Re: [rules-users] Drools Planner data / input file creation

2012-03-19 Thread ge0ffrey
hartnellg wrote > > Thanks for the suggestions for reading from Excel files. > I've used poi previously, and it will be worth having a look at jexcelapi. > > As far as the text files in the input directory, it's about how best to > create new ones. > For example where I have different shifts, un

[rules-users] Metadata in Guvnor-created rules

2012-03-19 Thread Stephen Masters
Hi folks,I'm curious about what metadata should be on a rule when created in Guvnor. I was assuming that any of the metadata fields shown under the "Attributes" tab should be available as metadata items when the rule gets activated. i.e. Title, categories, Created date, etc...However, when I call e

Re: [rules-users] Persistence in fireUntilHalt() loop

2012-03-19 Thread Alberto R. Galdo
I'm afraid this bug is not resolved and doesn't have nothing to do with lazy evaluation. We've been able to get to the source of the problem and this are the facts: - Drools and JBPM have different persistence managers. - Drools uses JTA for persistence and JBPM does not. - When any JPA

Re: [rules-users] Doubt when modifying facts on an action

2012-03-19 Thread Zeta
Hi manstis, finally i made as you suggested me. It works. Maybe it is not the most elegant solution if you want a business man to update the excel file but well... I was not able to find a better workaround. Thanks so much! Z.- -- View this message in context: http://drools.46999.n3.nabble.com

Re: [rules-users] checking string property for key-words

2012-03-19 Thread Wolfgang Laun
Have you tried subject matches ".*$1.*" (A more sophisticated regex seems to be indicated, though.) HTH -W On 19/03/2012, Frank Langelage wrote: > Hello, > > I'm working on module checking and processing incoming mails. > I'd like to use drools expert to check the mails and determine the >

[rules-users] checking string property for key-words

2012-03-19 Thread Frank Langelage
Hello, I'm working on module checking and processing incoming mails. I'd like to use drools expert to check the mails and determine the target folder for the further processing. So one of the first things is to check the subject of mail for keywords. I'm using decision tables. The first shot wa

Re: [rules-users] rules-users Digest

2012-03-19 Thread Kumar, Ravendra
Hello All, I am frustrated with error: 'Unable to load dialect 'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration' xxx.drl This is generated by eclipse drools plugin in problem view as a error, it would be helpful

Re: [rules-users] Exception in thread "main" java.lang.ClassCastException:

2012-03-19 Thread Esteban Aliverti
This is a known bug. We are trying to solve it: https://issues.jboss.org/browse/JBRULES-2962 Best Regards, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Mon, Mar 19, 2012 at 9:52 AM, srinivasasanda wro

[rules-users] Exception in thread "main" java.lang.ClassCastException:

2012-03-19 Thread srinivasasanda
Hi One and All, I used resource scanner in my program to update changes automatically. Every thing works fine. I had one method Method1 to create knowledge base. I had another method Method2 : with an infinite loop where i had a set of facts insert into in command list, and ksessio