Re: [rules-users] How to make this rule more memory efficient?

2010-05-04 Thread Ryan Fitzgerald
ivation count wise. Thomas > -Original Message- > From: rules-users-boun...@lists.jboss.org [mailto:rules-users- > boun...@lists.jboss.org] On Behalf Of Ryan Fitzgerald > Sent: 28 April 2010 09:46 > To: Rules Users List > Subject: Re: [rules-users] How to make this rule more m

Re: [rules-users] How to make this rule more memory efficient?

2010-05-04 Thread Ryan Fitzgerald
, 2010 at 10:45 AM, Ryan Fitzgerald wrote: > Thanks Wolfgang. > > Should I conclude therefore that high memory usage is unavoidable due to the > number of facts that must be processed? I was hoping that there might be a > clever way of writing the rules so that the rules engi

Re: [rules-users] How to make this rule more memory efficient?

2010-04-28 Thread Ryan Fitzgerald
cell2 : Cell(this != $cell1) > > > > Thomas > > > > From: rules-users-boun...@lists.jboss.org > [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ryan > Fitzgerald > Sent: 26 April 2010 15:34 > To: rules-users@lists.jboss.org > Subject: [rules-users]

Re: [rules-users] How to make this rule more memory efficient?

2010-04-27 Thread Ryan Fitzgerald
] How to make this rule more memory efficient? You should probably restrict it so that $cell2 : Cell(this != $cell1) Thomas From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ryan Fitzgerald Sent: 26 April 2010 15:34 To: rules-users@lists.jboss.org

[rules-users] How to make this rule more memory efficient?

2010-04-26 Thread Ryan Fitzgerald
Hi, Can anyone advise me on how to make a drools rule more memory efficient? Here is the problem: I have a Cell and a ProxyCell object classes. The ProxyCell represents the Cell when their internal ID's match. Each Cell and ProxyCell however has a unique name (not same as ID). A Cell can refe

Re: [rules-users] Can I use not and from in same condition?

2010-04-26 Thread Ryan Fitzgerald
glance, I'd use parens after not and at the end: not ( GsmCell( lac==$extgsmcell.lac, cellid==$extgsmcell.cellid) from $extutrancell.getIncomingGsmCells($extutrancell.fdn) ) -W 2010/4/26 Ryan Fitzgerald : > Hi, > > I get an error with the following rule that appears only when I

[rules-users] Can I use not and from in same condition?

2010-04-26 Thread Ryan Fitzgerald
Hi, I get an error with the following rule that appears only when I use the not keyword. If I remove the not keyword, it seems ok: rule "WCDMA->GSM Bidirectional Relations Evaluation Rule - Version 4" salience 10 dialect "java" when $extgsmcell : ExternalGsmCell()

Re: [rules-users] NullPointerException while inserting Facts

2010-03-23 Thread Ryan Fitzgerald
I found the problem - noobie mistake! As you suggested there was another rule which was being triggered by the insert and there was a bug in that rule. I was focusing on the insert because this is where the stack-trace was indicating I look. Thanks Thomas! /Ryan. _

Re: [rules-users] Exception during insert

2010-03-19 Thread Ryan Fitzgerald
ules-users-boun...@lists.jboss.org] On Behalf Of Ryan Fitzgerald Sent: 19 March 2010 10:40 To: rules-users@lists.jboss.org Subject: Re: [rules-users] Exception during insert **Apologies if this post starts a new thread** Hi Thomas, I get a series of com.sample.UtranCell strings printed expected. So the ar

Re: [rules-users] Exception during insert

2010-03-19 Thread Ryan Fitzgerald
. From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Ryan Fitzgerald Sent: 19 March 2010 09:41 To: rules-users@lists.jboss.org Subject: [rules-users] Exception during insert Hi, I get the following exception when trying to insert an object from within

[rules-users] Exception during insert

2010-03-19 Thread Ryan Fitzgerald
Hi, I get the following exception when trying to insert an object from within a rule consequence: [Error: object is not an instance of declaring class] The rule is as follows: rule "Utran Cell Selection Rule" salience 50 dialect "java" when then UtranCell[] ucel

[rules-users] Batch processing of facts in Drools?

2010-03-11 Thread Ryan Fitzgerald
Hi, In our application, we want to process a large amount of facts. However, to avoid an overload on memory and drools, we would like to process the facts in batches. Our rules are setup so that we only insert a small number of initial or "root" facts, and then these facts trigger rules to fir