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