[rules-users] Coding syntax differences
kissro at lidp.com
kissro at lidp.com
Mon Sep 17 09:03:23 EDT 2007
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
More information about the rules-users
mailing list