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
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
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
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
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 (
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
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
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
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
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
I thought when you use eval, it is Java, not mvel. So i think this should
work: eval (! (Map (.
Tim
Gaurav2007
<[EMAIL PROTECTED]
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
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
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
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
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
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
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
18 matches
Mail list logo