<p>Hi Vincent,</p><p>Thanks for your answer but I would really like to use my
synthax.</p><p>I need to write &quot;or&quot; between 2 constraints and not in
a single complex constraint.</p><p>If someone else could help me
...</p><p></p><p>
DELBART Vincent &lt;delbart.v@mipih.fr&gt; a écrit :</p><br />
<br />
&gt; Hello Stephane,<br />
&gt;<br />
&gt; I think it's difficult to do that. Could you try this :<br />
&gt; There is a Cheese with<br />
&gt;        - age is less than 42 or age is more than 60<br />
&gt;        - type is 'stilton'<br />
&gt; with in your DSL<br />
&gt; [condition][]There is a Cheese with=Cheese()<br />
&gt; [condition][]- age is less than {low} or age is more than {high}=age <br />
&gt; &lt; {low} || age &gt; {high}<br />
&gt; [condition][]- type is '{type}'=type == &quot;{type}&quot;<br />
&gt;<br />
&gt; I don't see other solution...<br />
&gt;<br />
&gt; vdelbart<br />
&gt;<br />
&gt;<br />
&gt;<br />
&gt; ________________________________<br />
&gt;<br />
&gt; De : rules-users-bounces@lists.jboss.org <br />
&gt; [mailto:rules-users-bounces@lists.jboss.org] De la part de <br />
&gt; stephane.remillieux@agysoft.fr<br />
&gt; Envoyé : mardi 11 septembre 2007 10:16<br />
&gt; À : rules-users@lists.jboss.org<br />
&gt; Objet : [rules-users] Adding constraints to facts in DSL<br />
&gt;<br />
&gt;<br />
&gt;<br />
&gt; Hello,<br />
&gt;<br />
&gt; I'm using JBossDrools in my company and I have some problems with DSL.<br
/>
&gt;<br />
&gt; Actually, I would like to write something like this :<br />
&gt;<br />
&gt; There is a Cheese with<br />
&gt;        ( - age is less<br />
&gt; than 42<br />
&gt;                 or<br />
&gt;         -  age is more than 60 )<br />
&gt;        - type is<br />
&gt; 'stilton'<br />
&gt;<br />
&gt; Unfortunately, It's the drools parser which manage &quot;-&quot; char.<br
/>
&gt;<br />
&gt; Also this previous synthax don't work in the LHS.<br />
&gt;<br />
&gt; Anyone could help me to do an equivalent condition in my DSL ? If <br />
&gt; possible with &quot;-&quot; sugar char.<br />
&gt;<br />
&gt; Stephane.<br />
&gt;<br />
&gt; PS : Sorry, for my very bad english.<br />
&gt;<br />
&gt;<br />
&gt; ----------------------------------------------------------------<br />
&gt; This message was sent using IMP, the Internet Messaging Program.<br />
&gt;<br />
&gt;<br />
<br />
<div id="_booktextmark_tab_id_" title="1189517934055" style="visibility:
hidden;"></div><br />
<br />
----------------------------------------------------------------<br />
This message was sent using IMP, the Internet Messaging Program.<br />