Re: [rules-users] lock-on-active, why keeps evaluating?

2010-07-18 Thread Andargor
I've had the same issue (mentioned in the "avoid loops" thread), and I solved it by setting each rule that needed to only be fired once to have its own activation-group (activation-group name = rule name). It would then be fired only once (although, it would be activated many, many times). I do

Re: [rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more

2010-07-18 Thread Patricia Bogoevici
Hi, I have been running more test cases on Drools-Guvnor, 5.1.0.M2, and I found a solution for the question 3) I had on my initial email thread. As for the 1), and 2), here is more context, hope that will help in debugging/solving my issues, as I am stuck at this point. 1) I need to create a B

Re: [rules-users] Static Imports

2010-07-18 Thread Meeraj Kunnumpurath
And it works :) On Sun, Jul 18, 2010 at 7:47 PM, Meeraj Kunnumpurath < mkunnumpur...@googlemail.com> wrote: > Thanks. > > In fact, I found this in the documentation, trying to follow your advice on > using DRL functions > > > > Alternatively, you could use a static method in a helper class, e.g.

Re: [rules-users] Static Imports

2010-07-18 Thread Meeraj Kunnumpurath
Thanks. In fact, I found this in the documentation, trying to follow your advice on using DRL functions Alternatively, you could use a static method in a helper class, e.g., Foo.hello(). Drools supports the use of function imports, so all you would need to do is: import function my.package.Foo

Re: [rules-users] Static Imports

2010-07-18 Thread Wolfgang Laun
Regretfully, no: import static is not implemented. Consider using a DRL function to wrap the call of the static method, to achieve a shorter call. -W 2010/7/18 Meeraj Kunnumpurath : > Hi, > > Are static imports as shown below allowed in rule files? It is giving me a > parse exception. > > packag

[rules-users] Static Imports

2010-07-18 Thread Meeraj Kunnumpurath
Hi, Are static imports as shown below allowed in rule files? It is giving me a parse exception. package mypackage; dialect "mvel" import mypackage.CreditTransferTransactionInformation10; import static mypackage.ValidationHelper.invalidate; global java.util.Set accountNumbers; rule "Check debt

Re: [rules-users] Persistence with Drools 5.1.0.M2

2010-07-18 Thread Rory Farrell
Hi Mauricio, Thanks for the reply. I made some progress with the orm.xml you provided. The orm.xml in the 5.1.0.M2 distribution has the named query as: select processInstanceInfo.processInstanceId from ProcessInstanceInfo processInstanceInfo where :type in (processInstanceInfo.e

Re: [rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more

2010-07-18 Thread Patricia Bogoevici
Hi, Oh, right. I am using 5.1.0.M2. Thanks, Patricia --- On Sun, 7/18/10, Salaboy wrote: From: Salaboy Subject: Re: [rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more To: "Rules Users List" Cc: "rules-users@lists.jboss.org" Date: Sunday, July 18, 2010, 11:17

Re: [rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more

2010-07-18 Thread Salaboy
Which version of guvnor are you using? - CTO @ http://www.plugtree.com - MyJourney @ http://salaboy.wordpress.com - Co-Founder @ http://www.jbug.com.ar - Mauricio "Salaboy" Salatino - On Jul 18, 2010, at 4:22, Patricia Bogoevici wrote: > Hi, > > I am evaluating Drools Guvnor for our applicat

[rules-users] How to configure conditional elements (IN, FROM) in Guvnor and more

2010-07-18 Thread Patricia Bogoevici
Hi, I am evaluating Drools Guvnor for our application, and I am stuck with a few things. I appreciate a lot, if someone can help me, or give me some hints. 1) How can I configure Guvnor, BRL Guided Editor, to allow for IN conditional element? By default, when I create a new package, and then c