<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Try without your <font size="+2">$o</font> in your constraints.<br>
    <br>
    EG try with :<br>
    <font size="+2">&nbsp;&nbsp;&nbsp; $o:Order(b.maxQ &lt; q)<br>
      <br>
      &nbsp;&nbsp;&nbsp; $o:Order(q &gt; b.maxQ)</font><br>
    <br>
    I suppose that as $o is the object itself, it may be binded only
    AFTER your pattern (in parser), and could leads to some weird things
    if used inside ..<br>
    <br>
    <br>
    Le 30/12/2010 20:32, Michael Whidden a &eacute;crit&nbsp;:
    <blockquote cite="mid:4D1CDE4E.7070405@thebluew.com" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      <font size="+2">I notice an unexpected behavior when creating a
        technical DRL in Guvnor.<br>
        <br>
        If I have a fact with a sub-fact, then binary operators don't
        seem to be commutative.<br>
        <br>
        Eg.,<br>
        <br>
        declare Broker<br>
        &nbsp;&nbsp;&nbsp; maxQ: Integer<br>
        <br>
        declare Order<br>
        &nbsp;&nbsp;&nbsp; q: Integer<br>
        &nbsp;&nbsp;&nbsp; b: Broker<br>
        <br>
        The rule<br>
        &nbsp;&nbsp;&nbsp; $o:Order($o.b.maxQ &lt; $o.q)<br>
        validates fine, but<br>
        &nbsp;&nbsp;&nbsp; $o:Order($o.q &gt; $o.b.maxQ)<br>
        returns an error "</font>Unable to create restriction
      '[QualifiedIndentifierRestr: &gt; $o.broker.maxQ ]' for field
      '$o.q' in the rule"<br>
      <br>
      I'm new, so I want to make sure I'm not missing something obvious
      here...<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <!--  @author Hadrien HUGOT -->
      <!-- Mod&egrave;le signature thunderbird et autres  -->
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <title>CARTE DE VISITE</title>
      <span style="font-size: 13.5pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">Vincent LEGENDRE</span><br>
      <i><span style="font-size: 8.5pt; font-family:
          &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
          90);">Consultant S&eacute;nior</span></i><br>
      <span style="font-size: 4.5pt;"> <br>
      </span>
      <span style="font-size: 9pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">EURODECISION<o:p></o:p></span><br>
      <span style="font-size: 9pt; font-family:
        &quot;Arial&quot;,&quot;sans-serif&quot;; color: rgb(21, 24,
        90);">9A rue de la Porte de Buc 78000 VERSAILLES<br>
        T&eacute;l. : +33 (0)1 39 07 12 40<br>
        Direct : +33 (0)1 39 07 26 16<br>
        <a href="www.eurodecision.com">www.eurodecision.com</a></span><br>
      <a href="http://www.eurodecision.com/"><span style="font-size:
          12pt; font-family: &quot;Times New
          Roman&quot;,&quot;serif&quot;; color: windowtext;
          text-decoration: none;"> <img
            src="cid:part1.09090907.05040402@eurodecision.com"
            alt="EURODECISION" border="no"></span></a><a
        href="http://www.eurodecision.com/"><span style="font-size:
          12pt; font-family: &quot;Times New
          Roman&quot;,&quot;serif&quot;; color: windowtext;
          text-decoration: none;"> </span></a>
    </div>
  </body>
</html>