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