Re: [rules-users] Integrating DROOLS in J2EE...

2007-10-25 Thread Mark Proctor
Paul Smith wrote: I don't know of any tutorials but I've been running Drools and JBoss together with a MySQL database and EJB3 for about 18 months now. Currently on Drools 4.02 with JBoss 4.2.1GA. It all works pretty well except for for the need to use the Janino instead of the Eclipse compile

Re: [rules-users] Integrating DROOLS in J2EE...

2007-10-25 Thread Paul Smith
I don't know of any tutorials but I've been running Drools and JBoss together with a MySQL database and EJB3 for about 18 months now. Currently on Drools 4.02 with JBoss 4.2.1GA. It all works pretty well except for for the need to use the Janino instead of the Eclipse compiler. There's something to

Re: [rules-users] again eval

2007-10-25 Thread Edson Tirelli
I see nothing wrong then. Can you show me the whole rule? []s Edson 2007/10/25, Markus Helbig <[EMAIL PROTECTED]>: > > sorry it is: > > item : Item(eval(Factory.getList().contains(id))) > > > 2007/10/24, Edson Tirelli <[EMAIL PROTECTED]>: > > > > You can't bind a variable to an eval

Re: [rules-users] JDK version

2007-10-25 Thread Xiandong Su
Do you have to download the source and build it under 1.4? I downloaded the binary files and it does not work in Eclipse 3.3 with Java 5. - Original Message From: Markus Helbig <[EMAIL PROTECTED]> To: Rules Users List Sent: Thursday, October 25, 2007 10:23:59 AM Subject: Re: [rules-user

[rules-users] Integrating DROOLS in J2EE...

2007-10-25 Thread mmquelo massi
Hi everybody! Does anybody know where I can find good tutorials concerning DROOLS 4.0.3\J2EE integration? I will use an Oracle DB and JBOSS Application Server (4.0.5). Any help will be great! I hope I will get used to DROOLS as soon as possible so that I will be able to help someone in this ML

[rules-users] Is it a bug !!

2007-10-25 Thread Mohan
Right... it is a simple constraint should work. To verify problem is not with Classloaders and String intern, I tried the second rule using eval and that worked, so problem is not interning vdelbart wrote: > > I try with this and it's working. I don't know why your case doesn't work. > > publi

Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-25 Thread vdelbart
I try with this and it's working. I don't know why your case doesn't work. public class Experience { private String primary; public String getPrimary() { return primary; } public void setPrimary(String primary) { this.primary= prima

Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-25 Thread Mohan
Object is siimple java bean, property "primary" is String. "))" is a typo I made in this thread corrected below is how i have it when I run it. rule "test" dialect "mvel" when Experience( primary == "SY") then log.debug("SY"); end

Re: [rules-users] JDK version

2007-10-25 Thread Markus Helbig
Yes ... and it works (Except BRMS) ... Cheers Markus 2007/10/25, Xiandong Su <[EMAIL PROTECTED]>: > Has anyone used jdk 1.4.x with the latest drools (4.0.3)? Are the jars in > 4.0.3 compiled using Java 5? Do we have options here using the old JDK > versions? > > Thanks > > Sean > > > > ___

[rules-users] JDK version

2007-10-25 Thread Xiandong Su
Has anyone used jdk 1.4.x with the latest drools (4.0.3)? Are the jars in 4.0.3 compiled using Java 5? Do we have options here using the old JDK versions? Thanks Sean ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/m

Re: [rules-users] Initialize Global

2007-10-25 Thread vdelbart
Beware, 2.5.4.5. Globals "If you use a global on the LHS of a rule, make sure it is immutable." regards, V. java_user_ wrote: > > How do I initialize a global fact in the drl file? I want use the JSR94 > API and avoid using the Drools API inside the Java code. I would like to > access the

[rules-users] BRMS Insurance Sample - Invalid Class Exception

2007-10-25 Thread John Nader
I am seeing the same issue. My configuration is slightly different in that I am using Drools 4.0.3 and JBoss 4.2.2GA with Java 5. I have been searching very hard to find where these two different version of AbstractParser are coming from. This class comes out of the MVEL. The jar in the drools

Re: [rules-users] Initialize Global

2007-10-25 Thread Kris Verlaenen
You can create a rule that initializes your global, preferrably with a high salience so it gets executed first: rule "InitializeGlobal" salience 100 when then ArrayList objectList = new ArrayList(); objectList.add("1"); objectList.add("2"); drools.getWorkingMemory().setGlobal("obje

Re: [rules-users] When to Use Rule Flow File

2007-10-25 Thread Kris Verlaenen
You do not HAVE to use ruleflow. If you do not want to use it or know why you would need it, you shouldn't. Ruleflow can be used to define the order in which your rules / rule sets should be executed, which might become important if you have a lot of rules. Read more in the docs on how / why

[rules-users] State of fact templates

2007-10-25 Thread Michael Zimmermann
Hi, what is the current state of the fact template implementation in Drools 4.0.x? There are few posts on the mailing list yet no detailed information in the current documentation. Is there any further information available? cu, Michael ___ rules-users

Re: [rules-users] Difference between constraint within a pattern and eval

2007-10-25 Thread vdelbart
Hi, what's your Experience object ? Your property "primary" is a String ? maybe it's this : when Experience( primary == "SY") ) ??? V. -- View this message in context: http://www.nabble.com/Difference-between-constraint-within-a-pattern-and-eval-tf4688141.html#a134030

Re: [rules-users] again eval

2007-10-25 Thread Markus Helbig
sorry it is: item : Item(eval(Factory.getList().contains(id))) 2007/10/24, Edson Tirelli <[EMAIL PROTECTED]>: > > You can't bind a variable to an eval. > > []s > Edson > > 2007/10/24, Markus Helbig <[EMAIL PROTECTED]>: > > > > Hi > > > > rule > > when > > item : eval(Factory.ge

RE: [rules-users] Initialize Global

2007-10-25 Thread Anstis, Michael (M.)
Do you want a true "global" variable or a "fact" available to all rules? Either way, you could have a rule to set it up... Rule "init-global" When Then myGlobal.doSomethingToInitialiseIt(); End Rule "init-fact" When $f : MyFact() Then