Re: [rules-users] Help debugging NPE

2009-06-25 Thread Dirk Bergstrom
LIRecord( id memberOf $pr.rli_nums, npi_program == > $npi.synopsis ) > > > Can you narrow it down? Did you tried with Drools 5.0.1? > > I haven't tried any of the 5.x series. Is there a guide to > migrating my code > from 4.0 to 5.0? I

Re: [rules-users] Help debugging NPE

2009-06-24 Thread Dirk Bergstrom
ating my code from 4.0 to 5.0? I looked on the jboss site, the wiki, the blog, and this mailing list, but I didn't find anything. I'm under a lot of time pressure, and changing to 5.0 doesn't look like a quick fix... > 2009/6/24 Dirk Bergstrom mailto:d...@juniper.net&

[rules-users] Help debugging NPE

2009-06-23 Thread Dirk Bergstrom
ingMemory.update(AbstractWorkingMemory.java:1250) at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1203) at net.juniper.dash.data.DataSource.reconcileAssertedRecords(DataSource.java:409) -- Dirk Bergstrom d...@juniper.net _ Jun

[rules-users] Negating a constraint group?

2008-04-07 Thread Dirk Bergstrom
Does anyone think it would be worthwhile to open a Jira requesting the ability to negate a constraint group? And, if I did open such a thing, do the developers think it would be reasonably easy to implement? -- Dirk Bergstrom [EMAIL PROTECTED] __

Re: [rules-users] Coding up an "intersects" operator

2008-02-04 Thread Dirk Bergstrom
> minutes. >Join the IRC and talk to me and I can guide you. Thanks. I'll show up later this week, after I get the current round of features rolled out. >If you are using older versions of Drools (not trunk) things will be > a lot more complicated. :( I don't like c

[rules-users] Coding up an "intersects" operator

2008-02-03 Thread Dirk Bergstrom
t I have to touch. A ways back, Edson said that I could use the work on "contains" as a model; is there a single subversion commit that lists all the files affected by that? Thanks. -- Dirk Bergstrom [EMAIL PROTECTED] _ Juniper

Re: [rules-users] Bug with removePackage/removeRule

2008-02-03 Thread Dirk Bergstrom
o that. -- Dirk Bergstrom [EMAIL PROTECTED] _ Juniper Networks Inc., Computer Geek Tel: 408.745.3182 Fax: 408.745.8905 ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Is there a better way?

2008-01-28 Thread Dirk Bergstrom
On 01/26/08 03:32, someone claiming to be Edson Tirelli wrote: >This should work: > $rli_list : RecordSet( this != $npi.relatedRLIs ) And it does, thanks very much. I could swear I tried that, but I guess not. Foolish me. > 2008/1/25, Dirk Bergstrom <[EMAIL PROTECTED] &l

[rules-users] Is there a better way?

2008-01-25 Thread Dirk Bergstrom
then $npi.setRelatedRecords($rli_list, DataSource.RLI) && update($npi); end But that won't compile at all. -- Dirk Bergstrom [EMAIL PROTECTED] _ Juniper Networks Inc., Computer Geek Tel: 408.745.3182 Fax

[rules-users] Bug with removePackage/removeRule

2008-01-24 Thread Dirk Bergstrom
uot;Find 'fred' " + $rec.dump()); end Find 'fred' 4:"fred", Find 'fred' 2:"fred", As expected, 'fred' is found. Removing package tom (same bug if you use "ruleBase.removeRule"). ruleBase.removePackage("tom"); addi

Re: [rules-users] Bug and/or confusion with collect and new rules

2008-01-09 Thread Dirk Bergstrom
ehavior when dynamically adding > packages. I think mark created a configuration to change this > behavior... I just found it surprising, and thought that maybe I was misunderstanding something. If you can remember the knob for that config, I'd like to know. Thanks. -- Dirk Bergstr

[rules-users] Bug and/or confusion with collect and new rules

2008-01-08 Thread Dirk Bergstrom
quot;fred" ) then System.out.println("Find 'fred' " + $rec.dump()); end ==> Why do the new rules fire when added? Find 'fred' 4:"fred", Find 'fred' 2:"fred", 'Collect fred' collected 0 records => ==> Why doesn't

[rules-users] Order of columns and of constraints

2007-05-30 Thread Dirk Bergstrom
more expensive than 'field == "literal"'). I'd like to put the fail-fast tests up front, and the expensive ones last. Does that actually work in Drools? Can I "optimize" my rules by juggling the order of the columns and constrai

Re: [rules-users] "Or" and Collect

2007-05-30 Thread Dirk Bergstrom
t worry about that request for 4.0. It might be a cool feature, but I don't need it now. Since it wasn't available, I had to find a workaround, and that turned out to be better in the end. Thanks for taking the time to respond. -- Dirk Bergstrom [EMAIL PROTECTED] _

Re: [rules-users] "Or" and Collect

2007-05-29 Thread Dirk Bergstrom
ers" now (which makes for a very ugly parenthetical). Can I file a jira for "intersects", or should I quit being greedy, and enjoy the shiny new "memberOf" that I am in fact very happy about? :) -- Dirk Bergstrom [EMAIL PROTECTED]

[rules-users] "Or" and Collect

2007-05-29 Thread Dirk Bergstrom
tation, you can use && and || without subrule generation, and I have a vague memory of seeing something about "and" & "or" as well, but I can't remember where I saw it. Thanks. -- Dirk Bergstrom [EMAIL PROTECTED] ___

[rules-users] Questions about collect performance

2007-04-13 Thread Dirk Bergstrom
when ControlFact( ) $user : User( ) $pr_list : RecordSet( size > 0 ) from collect( PRRecord( $resp : responsible -> ( $user.hasReport($resp) ) ) ) then $user.setRecords($pr_list, DataSource.GNATS); And retract the ControlFact before asserting PR objects, then assert it when I'm r

Re: [rules-users] Problem with shadow facts in trunk

2007-03-15 Thread Dirk Bergstrom
Edson Tirelli was heard to exclaim: >May I ask you please to open a ticket for this one too? It would be > great if you can attach your RLIRecord class too, so I can reproduce the > problem. Done: http://jira.jboss.com/jira/browse/JBRULES-740 -- Dirk Bergstrom

Re: [rules-users] Problems with rule builder errors

2007-03-15 Thread Dirk Bergstrom
Edson Tirelli was heard to exclaim: >Can you please open a JIRA for me? It would be great if you can > attach a self contained example of the problem. I will look into it and fix. Done: http://jira.jboss.com/jira/browse/JBRULES-739 Thanks. -- Dirk Bergstrom [EMAIL PRO

[rules-users] Problem with shadow facts in trunk

2007-03-13 Thread Dirk Bergstrom
ReteooRuleBase.java:196) at org.drools.reteoo.ReteooWorkingMemory.doAssertObject(ReteooWorkingMemory.java:68) at org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:729) at org.drools.common.AbstractWorkingMemory.assertObject(AbstractWorkingMemory.java:548) -- Dirk Bergs

[rules-users] Problems with rule builder errors

2007-03-13 Thread Dirk Bergstrom
L handling. I had to comment out all the blank lines in my DSL file to get it to suppress some other errors, and if I switch to PackageBuilder.addPackageFromDrl(String), the problem goes away. -- Dirk Bergstrom [EMAIL PROTECTED] _ Junipe

[rules-users] PropertyChangeListeners vs. modify()

2007-02-22 Thread Dirk Bergstrom
change all the properties, then call modify() once. Is this a fair reading, or am I missing something? -- Dirk Bergstrom [EMAIL PROTECTED] _ Juniper Networks Inc., Computer Geek Tel: 408.745.3182 Fa

Re: [rules-users] More on thread safety of working memory

2007-02-20 Thread Dirk Bergstrom
n't I be better off asserting a non-dynamic fact, doing the update, and then calling modify() once? > On 2/21/07, *Dirk Bergstrom* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > This horse has been beaten pretty hard > (http://thread.gmane.org/gman

[rules-users] More on thread safety of working memory

2007-02-20 Thread Dirk Bergstrom
ready-asserted objects (all fields have PropertyChangeListener (PCL) support). I think that using a SynchronisedWorkingMemory will handle the assert/retract updates. Will it be "happy" in the face of PCL changes as well, or do I need to do something more? -- Dirk Bergstrom [

Re: [rules-users] Janino vs. Eclipse

2007-02-20 Thread Dirk Bergstrom
oyment. Now I'm not so sure... -- Dirk Bergstrom [EMAIL PROTECTED] _ Juniper Networks Inc., Computer Geek Tel: 408.745.3182 Fax: 408.745.8905 ___ rules-users mai

[rules-users] Janino vs. Eclipse

2007-02-20 Thread Dirk Bergstrom
wse/JBRULES-672). Thanks. -- Dirk Bergstrom [EMAIL PROTECTED] _ Juniper Networks Inc., Computer Geek Tel: 408.745.3182 Fax: 408.745.8905 ___ rules-users mailing list rules-us

[rules-users] Re: [drools-dev] 3.2 M1

2007-01-12 Thread Dirk Bergstrom
ng a bit more stable. Today's trunk "revision 8842" doesn't build, because the mvel code is Java 1.5. I'm kinda stuck here, and I'm hoping that someone can throw me a bone. If M1 isn't coming soon, was there a particular revision number that was f