<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    To add to Wolfgangs response, you are missing <br>
    <br>
    public static final int HIGHROADS = 4 <br>
    in the Assignment class, also since you are updating Assignment in
    the rule actions you should either put NO-LOOP on each of the rules,
    or you could use a "trick" to set "lock-on-active" on a package
    level (see uploaded xls). With the also uploaded test, the results I
    am getting are:<br>
    *****<br>
    Knowledgebase read<br>
    All rules fired<br>
    Status: 0<br>
    Message: Heavy snow and cold. Medium clearance on main roads<br>
    *****<br>
    and you can also see the generated DRL (using SpreadsheetCompiler).
    Checking the generated DRL of your decision table is useful for
    debugging in the future.<br>
    <br>
    Hope this helps ;)<br>
    <br>
    Thanks.<br>
    Tihomir<br>
    <br>
    On 12/27/10 10:13 AM, Wolfgang Laun wrote:
    <blockquote
      cite="mid:AANLkTinztpEjZOj2s0tFN3oE76WU5-PViQ--3bF-nYeQ@mail.gmail.com"
      type="cite">Hi Frank<br>
      <br>
      Join C8:F8 and change the contents to<br>
      &nbsp;&nbsp; a:Assignment() and w:Weather<br>
      all conditions deal with Weather - they'll be inserted into the
      last pair of parentheses that will be added to Weather. (The "and"
      is redundant as it is implied for patterns at the outermost level.
      There should be a single Assignment fact, and I guess there is
      only one Weather.)<br>
      <br>
      I would not add an update(a) to each individual action; another
      ACTION column with $param; in row nine and "update(a)" in all rows
      below lets you remove the repeated "update(a)" from H9:J9. (But
      this is, perhaps, a matter of taste.) <br>
      <br>
      Cheers<br>
      Wolfgang<br>
      <br>
      PS: Regretfully, this set of rules is going to be late for this
      winter ;-)<br>
      <br>
      <br>
      <br>
      <div class="gmail_quote">On 27 December 2010 10:23, FrankVhh <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:frank.vanhoenshoven@agserv.eu">frank.vanhoenshoven@agserv.eu</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="border-left: 1px solid
          rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
          1ex;"><br>
          Hi all,<br>
          <br>
          I am a brand new user of the Drools-tools and am not quite
          comfortable with<br>
          the tools yet. The current problem I am having, is caused by
          an "Unknown<br>
          parsing error" in a decision table.<br>
          <br>
          &gt;From past experience, I guess I have made a syntax error
          somewhere in the<br>
          file. However, I am not able to detect the error myself.
          Probably it is a<br>
          quite simple mistake, caused by a combination of inexperience
          and<br>
          neglectance :-).<br>
          <br>
          I figured I could use an extra pair of eyes and was hoping
          that some<br>
          friendly community member could help me out on this.<br>
          <br>
          I will annex the table as well as the java code that contains
          the java<br>
          classes (the table isn't callad from the code yet).<br>
          <a moz-do-not-send="true"
href="http://drools-java-rules-engine.46999.n3.nabble.com/file/n2150980/strooidiensten.java"
            target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/file/n2150980/strooidiensten.java</a><br>
          strooidiensten.java<br>
          <a moz-do-not-send="true"
href="http://drools-java-rules-engine.46999.n3.nabble.com/file/n2150980/clearance.xls"
            target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/file/n2150980/clearance.xls</a><br>
          clearance.xls<br>
          <br>
          Thank you very much in advance!<br>
          <br>
          Kind regards,<br>
          <br>
          Frank<br>
          <font color="#888888">--<br>
            View this message in context: <a moz-do-not-send="true"
href="http://drools-java-rules-engine.46999.n3.nabble.com/Decision-Table-tp2150980p2150980.html"
              target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Decision-Table-tp2150980p2150980.html</a><br>
            Sent from the Drools - User mailing list archive at
            Nabble.com.<br>
            _______________________________________________<br>
            rules-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
            <a moz-do-not-send="true"
              href="https://lists.jboss.org/mailman/listinfo/rules-users"
              target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
          </font></blockquote>
      </div>
      <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>
  </body>
</html>