Re: [rules-users] Assistance with DSL syntax

2007-09-12 Thread Christopher . Mathrusse
I was just looking for a more "short hand" syntax, one where I would not need to declare "theOrder". On the same subject though, I compiled my rules with the DRL/DSL editors in Eclipse (very nice by the way) and I am getting a compilation error being caused by my DSL entry: [consequence][]Manual

Re: [rules-users] Assistance with DSL syntax

2007-09-12 Thread Edson Tirelli
Yes, that is correct. Why do you mean by a "cleaner" way? []s Edson 2007/9/12, [EMAIL PROTECTED] < [EMAIL PROTECTED]>: > > > I'm using a DSL with my DRL file and I've read through the documentation > but I've gotten hung-up on the syntax. Below is a rule from my DRL and the > expans

[rules-users] Assistance with DSL syntax

2007-09-12 Thread Christopher . Mathrusse
I'm using a DSL with my DRL file and I've read through the documentation but I've gotten hung-up on the syntax. Below is a rule from my DRL and the expansion in my DSL. My rule in the DRL: rule "Maximum Order Amount Exceeded" salience 9800         when                    There is an Order with  

[rules-users] RuleML-2007 CfPart - Early Bird Registration / Late-Breaking Demos

2007-09-12 Thread Adrian Paschke
EARLY BIRD REGISTRATION DEADLINE International RuleML Symposium on Rule Interchange and Applications (RuleML-2007) http://2007.ruleml.org/ We would like to kindly remind you about some important deadlines: September 15, 20

[rules-users] java void in LHS

2007-09-12 Thread Tim . Nguyen
Hi all, I would like to insert a java void to my condition(LHS). Is there anyway to do that? Like an example below, how can I set something to my object before evaluate it. rule test123 when cheese: Chesse() --->>> chess.getType().setPrice("cheap"); eval (chesse.getType (

Re: [rules-users] How to use not operator in drool.

2007-09-12 Thread Edson Tirelli
Remove your "eval" and use "or" instead of "||" for the OR CE. Although, I feel that this is not what you want... what you want is simply: when Map( this['city'] not in ( "mumbai", "delhi" ) ) then //... end []s Edson 2007/9/12, Gaurav2007 <[EMAIL PROTECTED]>: > > > Hi ALL

Re: [rules-users] Adding constraints to facts in DSL

2007-09-12 Thread Andy Mei
Ok, i took the liberty and created a ticket for this. http://jira.jboss.com/jira/browse/JBRULES-1186 On 9/12/07, Edson Tirelli <[EMAIL PROTECTED]> wrote: > > >All, > >This is a limitation of the current DSL engine implementation. The > problem is not really the "or", but the "-" implemen

Re: [rules-users] column in OR

2007-09-12 Thread Raffaele Viola
yes, but in a decision table regards Raffo 2007/9/12, Edson Tirelli <[EMAIL PROTECTED]>: > >What do you mean? > > rule XXX > when > A() or B() > then >// do something > end > >? > >Edson > > 2007/9/12, Raffaele Viola < [EMAIL PROTECTED]>: > > > > Hi all, > > > > how can I put

Re: [rules-users] Adding constraints to facts in DSL

2007-09-12 Thread Edson Tirelli
All, This is a limitation of the current DSL engine implementation. The problem is not really the "or", but the "-" implementation. The LHS and RHS of a DSL rule are processed line by line, so, to allow the behavior you are requesting, we will need to implement some look ahead mechanism with

Re: [rules-users] column in OR

2007-09-12 Thread Edson Tirelli
What do you mean? rule XXX when A() or B() then // do something end ? Edson 2007/9/12, Raffaele Viola <[EMAIL PROTECTED]>: > > Hi all, > > how can I put two columns in OR > > Thanks > Raffo > > ___ > rules-users mailing list > rules-us

Re: [rules-users] How to use not operator in drool.

2007-09-12 Thread Tim . Nguyen
I thought when you use eval, it is Java, not mvel. So i think this should work: eval (! (Map (. Tim Gaurav2007 <[EMAIL PROTECTED]

[rules-users] How to use not operator in drool.

2007-09-12 Thread Gaurav2007
Hi ALL, I am using drool4.0.1 in my application i am able to use IN,OR,AND operator but i am facing problem in using not operator. my requirement of not operator is just like a not gate. the way i am using it is : eval(not((Map( this["city"] !="mumbai"))||(Map( this["city"] =="delhi" so

Re: [rules-users] Adding constraints to facts in DSL

2007-09-12 Thread Andy Mei
I am having the same problem as Stephane does. It's pretty bad if I need to hard code the 'or' constraint within a single DSL constraint. I guess I could split a complex OR constraint to multiple rules with the same consequences, it just an ugly hack. Also, how does this work if we need a Or con

[rules-users] column in OR

2007-09-12 Thread Raffaele Viola
Hi all, how can I put two columns in OR Thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Tuples discrimination

2007-09-12 Thread Edson Tirelli
Eymeric, This is a fairly common case of finding the "best" of multiple choices (usually, the max, min, etc). You can find some examples and explanation in the wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesFindMax So, the answer to your question is: it must be done in the LHS. Ag

[rules-users] rules name

2007-09-12 Thread Raffaele Viola
Hi all, can I set using the decision table the name of each rules? thanks Raffo ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Tuples discrimination

2007-09-12 Thread Eymeric VIEUILLE
Hi ! After solving the problem of Out of Memory, I come back with another question : I currently implemented rules that give me tuples like this (in the agenda, before firing rules) : M1xM2xM3xM4. But now, I want to select THE tuple that as M1xM2xM3xM4 with a property p as little as possi

[rules-users] Multivariable and multislots

2007-09-12 Thread Lars Braubach
Hi, I was wondering how I can express pattern matchings in drools that operate on sets of values (multivalues). As an example I composed a Jess/Clips rule that is able to match every block that has a green as well as a red block on top of it. (deftemplate Block (slot name(type STRING)) (slot