[rules-users] Compile Challenges December 20, 2009

2009-12-20 Thread Pete Carapetyan
It's a little bit under protest that I'm submitting this error, because it kind of creeps me out that I have to compile all drools projects from root just to get drools planner samples to compile in my IDE, but Geoffrey asked - and I am highly appreciative of everything he and the drools team is

Re: [rules-users] Compile Challenges December 20, 2009

2009-12-20 Thread Geoffrey De Smet
Hi Pete, It's a jdk/maven setup problem I think. Can you try, these commands (without the $): $ echo %JAVA_HOME% = should give something like C:\... and it should be a JDK, not a JRE $ java -version java version 1.6.0_16 Java(TM) SE Runtime Environment (build 1.6.0_16-b01) Java HotSpot(TM)

Re: [rules-users] Compile Challenges December 20, 2009

2009-12-20 Thread Mark Proctor
On 20/12/2009 16:59, Pete Carapetyan wrote: It's a little bit under protest that I'm submitting this error, because it kind of creeps me out that I have to compile all drools projects from root just to get drools planner samples to compile in my IDE, but Geoffrey asked - and I am highly

[rules-users] MVEL strict mode -- when, why?

2009-12-20 Thread Barry Kaplan
I have never gotten any of my rules to compile using mvel strict mode. If I leave the default I get spews of error messages that I can't make any sense of. For example with: --- package systeminsights.plugin.core.schedule rule foo when eval(true) then // noop end --- I get messages like

[rules-users] mythical functions

2009-12-20 Thread Barry Kaplan
Chris Richmond wrote: So..assuming I *did* want to put a simple function in my .drl file..*where* do I have to put it? My oringal question about how to make a simple function declaration is still a mystery to me. Did this ever get answered? I have never been able to use a function. I

Re: [rules-users] mythical functions

2009-12-20 Thread Barry Kaplan
Yes, the above example had a typo: System.out.println(*** f= f()) Was really when I ran the test: System.out.println(*** f= + f()) -- View this message in context: http://n3.nabble.com/functions-tp60463p95673.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] mythical functions

2009-12-20 Thread Barry Kaplan
Interesting, if I change from mvel to java and remove the package statement: function String f() { return function; } rule Invoke function when eval(true) then System.out.println(*** f= + f()); end --- Then this works. So then, what permutations of mvel/java actually work:

[rules-users] Re-sending : Unexpected MVEL plus operator behavior (string-to-double), in consequence block

2009-12-20 Thread Kinshuk Adhikary
Using drools 5.1 mvel 2-2.0.14 In consequence (then) block : (dialect strict or not does not make a difference) Trying to sum up some numbers after a multiplication operation. For example : t.out = t.in2*t.in3 + t.in3*t.in4 + t.in2*t.in4; (the object t has all its attributes of the type