OT:Order of operations
by Hehl, Thomas
Anyone else use Please Excuse My Dear Aunt Sally? (Parentheses,
Exponentiation, Multiplication, Division, Addition, Subtraction)
_____
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Wednesday, April 09, 2008 2:39 PM
To: Rules Users List
Subject: Re: [rules-users] Order of operations
Hi Joe,
It seems someone skipped the elementary math lessons at school... :(
Will open a JIRA for that.
[]s
Edson
2008/4/9 Joe White <Joe.White(a)recondotech.com
<mailto:Joe.White@recondotech.com> >:
I have a question regarding order of operations in the consequence of a rule
when using the mvel dialect. When executed the Drl below provides Right
=30.0 and Wrong =140.0. The only difference is the parens around the
multiplying expressions, which shouldn't be necessary given order of
operations. Is this a problem with the drools/mvel interaction or is it
completely an issue with mvel?
Is the general expectation that all expressions must be completely scoped by
parens when using mvel?
package test;
dialect "mvel"
rule "test 11"
when
then
double rightVal=((10-5)*2) + (5*(8-4));
double wrongVal=(10-5)*2 + 5*(8-4);
System.out.println("Right ="+rightVal);
System.out.println("Wrong ="+wrongVal);
End
After execution:
Right =30.0
Wrong =140.0
Thank you for all of your help. We are using drools 4.0.4. <http://4.0.4.>
Joe
Also, I haven't figured out how it arrives at 140. The following format also
produces 140, which seems a little more strange.
double wrongVal=10-5*2 + 5*8-4;
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org <mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
<https://lists.jboss.org/mailman/listinfo/rules-users>
--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com <http://www.jboss.com>
17 years, 9 months
BRMS security setup on Weblogic
by Majeed, Atif
Hi,
I've installed BRMS (4.0.6) on Weblogic Server (10.0) and need to create
user accounts/password to grant access to a few users. Any instructions
on setting up BRMS security on Weblogic will be helpful.
Thanks
Atif Majeed
17 years, 9 months
BRMS Date format
by vmuthupal
Hi,
I read in the documentation that the default date format in drools is
'dd-MON-yyyy'. However when I try to create a rule using the brl editor, it
looks like the application takes in all kinds of date format (dd/mm/yy, for
example). When I hit on validate button, I actually expected an error, but
got a 'rule built successfully' message. FYI - I tried defining the variable
as java.util.Date as well as an Calendar instance. Let me know how to
enforce the date type validation in BRMS. Thanks.
--
View this message in context: http://www.nabble.com/BRMS-Date-format-tp16586411p16586411.html
Sent from the drools - user mailing list archive at Nabble.com.
17 years, 9 months
(no subject)
by kamal@mpower.co.in
while using xml file i am getting this error
Cannot find the declaration of element 'rule-set'.
Exception in thread "main" org.drools.compiler.DroolsParserException
at org.drools.compiler.PackageBuilder.addPackageFromXml(Unknown Source)
--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange
17 years, 9 months
Rule files missing in examples
by Seema Richard
Hi,
I'm new to Drools, trying to learn from the examples. I downloaded the
drools-4.0.4-examples.zip from
http://www.jboss.org/drools/downloads.html. The rule files are missing
in most of the examples. Even the simplest one, HelloWorld.drl is
missing. Please let me know how I can get the correct files.
Thanks,
Seema
17 years, 9 months
when will the 4.0.7 release be?
by jack wu
i thought it was supposed to be Monday yesterday.
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
17 years, 9 months
Re: [rules-users] Drools 4.0.3 download
by Knych, Thomas
Fernando -
Thanks for the links, I was able to get them downloaded and installed.
Thanks,
-tom
Message: 7
Date: Tue, 8 Apr 2008 12:21:21 -0300
From: "Fernando Meyer" <fernando(a)fmeyer.org>
Subject: Re: [rules-users] Drools 4.0.3 download
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Message-ID:
<bc9e67320804080821m158ad2j23dbf676eeb3b04e(a)mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi you can get then from
http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-bin
.zip
http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-brm
s.zip
http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-ecl
ipse3.2.zip
http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-ecl
ipse3.3.zip
http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-exa
mples.zip
http://download.jboss.org/drools/release/4.0.3.15993.GA/drools-4.0.3-src
.zip
or though our maven repository.
On Tue, Apr 8, 2008 at 12:11 PM, Knych, Thomas <thomas.knych(a)citi.com>
wrote:
> Hi,
>
> We've just approved Drools 4.0.3 for use at my company, however I no
> longer see the link for 4.0.3 available from the download page
> (http://www.jboss.org/drools/downloads.html). Is it archived
somewhere?
>
>
> I'm beginning the process to approve 4.0.4, but it will take awhile -
so
> unless there was a major issue with 4.0.3 I'd like to use that in the
> interim.
>
>
> Thanks,
>
> -Tom
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
Fernando Meyer http://fmeyer.org
JBoss Rules Core Developer
fernando(a)fmeyer.org
17 years, 9 months
Drools 4.0.3 download
by Knych, Thomas
Hi,
We've just approved Drools 4.0.3 for use at my company, however I no
longer see the link for 4.0.3 available from the download page
(http://www.jboss.org/drools/downloads.html). Is it archived somewhere?
I'm beginning the process to approve 4.0.4, but it will take awhile - so
unless there was a major issue with 4.0.3 I'd like to use that in the
interim.
Thanks,
-Tom
17 years, 9 months
Escape Character in Rules
by Felbecker, Tobias
Hi,
I am using a DSL sentence within the JBRMS like this:
[condition]There is an Instance with field of {value}=i:
Instance(field=='{value}')
When I enter a string for {value} in the rules editor that contains a
"{" it is not shown in the source code of the rule and saving of that
rule is impossible. There is no Error Message, but the saving dialog in
not closing.
So I wonder if there is any escape character, that I should use in the
rule or is there something wrong with the DSL?
Cheers Tobi
17 years, 9 months