Section 6.5.2.1.
[]s
Edson
2007/9/17, kissro(a)lidp.com <kissro(a)lidp.com>:
Let me preface my question by saying I'm new to both Java and drools so
if it is silly or the answer is obvious, you know why. Given the two
rules below, what, if any, is the difference between the two?
rule "Low Premium"
when
p : Policy( sex == "m" && premium < 50.00 )
then
p.setStatus( 32 );
end
rule "Low Premium"
when
p: Policy( sex == "m", premium < 50.00 )
then
p.setStatus( 32 );
end
The first rule is from a .drl I coded and the second was generated from
.dsl mapping. My specific question is about the "when" portion. Is
there a difference between the two? Does the "," represent "and"?
If
so, how would "or" be written or represented in the .dsl/.drl?
Rod
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @