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