<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=247000609-11092007><FONT face=Arial
color=#0000ff size=2>Hello Stephane,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=247000609-11092007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=247000609-11092007><FONT face=Arial
color=#0000ff size=2>I think it's difficult to do that. Could you try this
:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=247000609-11092007><FONT face=Arial
color=#0000ff size=3><PRE class=programlisting>There is a Cheese with<BR> - age is less than 42 or age is more than 60<BR> - type is 'stilton'</PRE></FONT></SPAN></DIV>
<DIV><SPAN class=247000609-11092007><FONT face=Arial color=#0000ff size=2>with
in your DSL</FONT></SPAN></DIV>
<DIV><SPAN class=247000609-11092007><FONT face="Courier New" color=#0000ff
size=2>[condition][]There is a Cheese with=Cheese()</FONT></SPAN></DIV>
<DIV><SPAN class=247000609-11092007><FONT face="Courier New" color=#0000ff
size=2>[condition][]- age is less than {low} or age is more than {high}=age <
{low} || age > {high}</FONT></SPAN></DIV>
<DIV><SPAN class=247000609-11092007><FONT face="Courier New" color=#0000ff
size=2>[condition][]- type is '{type}'=type == "{type}"</FONT></SPAN></DIV>
<DIV><FONT color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=247000609-11092007>I
don't see other solution...</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=247000609-11092007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=247000609-11092007>vdelbart</SPAN></FONT></DIV>
<DIV><FONT face="Courier New" color=#0000ff></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>De la part de</B>
stephane.remillieux@agysoft.fr<BR><B>Envoyé :</B> mardi 11 septembre 2007
10:16<BR><B>À :</B> rules-users@lists.jboss.org<BR><B>Objet :</B>
[rules-users] Adding constraints to facts in DSL<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Hello,</P>
<P>I'm using JBossDrools in my company and I have some problems with DSL.</P>
<P>Actually, I would like to write something like this :</P><PRE class=programlisting>There is a Cheese with<BR> ( - age is less
than 42 </PRE><PRE class=programlisting>                or</PRE><PRE class=programlisting>        - age is more than 60 )<BR> - type is
'stilton'</PRE>
<P>Unfortunately, It's the drools parser which manage "-" char.</P>
<P>Also this previous synthax don't work in the LHS.</P>
<P>Anyone could help me to do an equivalent condition in my DSL ? If
possible with "-" sugar char.</P>
<P>Stephane.</P>PS : Sorry, for my very bad english.
<DIV id=_booktextmark_tab_id_ title=1189498442338
style="VISIBILITY: hidden"></DIV>
<DIV id=_booktextmark_tab_id_ title=1189498442353
style="VISIBILITY: hidden"></DIV><BR><BR>----------------------------------------------------------------<BR>This
message was sent using IMP, the Internet Messaging Program.<BR></BODY></HTML>