[rules-users] Coding syntax differences

Edson Tirelli tirelli at post.com
Mon Sep 17 09:31:23 EDT 2007


   http://downloads.jboss.com/drools/docs/4.0.1.14754GA/html/index.html

   Section 6.5.2.1.

   []s
   Edson


2007/9/17, kissro at lidp.com <kissro at 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 at 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 @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070917/9fe7ed23/attachment.html 


More information about the rules-users mailing list