<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Note that in the RHS of any rule you can use<br>
    &nbsp;&nbsp; kcontext.getRule().getName()<br>
    and<br>
    &nbsp;&nbsp; kcontext.getMatch().getObjects()<br>
    to explain which rules were fired with which match objects.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 04-10-13 10:49, Esteban Aliverti
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKsR9Q-XzTx7GyLWLZeCCV1rwrZLfkoq4nF-rHRRc8Kp+Dmp7w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Let me add that you can also use a custom
        AgendaEventListener to keep track of all the rules that were
        executed.
        <div><br>
        </div>
        <div>Regards,</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div><br>
          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
          <br>
          Esteban Aliverti<br>
          - Blog @ <a moz-do-not-send="true"
            href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a></div>
        <br>
        <br>
        <div class="gmail_quote">On Fri, Oct 4, 2013 at 10:20 AM, rjr201
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:rich.j.riley@gmail.com" target="_blank">rich.j.riley@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            This is a statement about the nature of rules engines in
            general. Rules<br>
            engines are made up of human readable rules, as opposed to
            say a neural<br>
            network where the knowledge isn't explicitly represented
            (it's a big black<br>
            box of maths). A rules engine is symbolic, a neural network
            sub-symbolic. A<br>
            neural network can give you an answer, but not a
            justification of why.<br>
            People like rules engines because (when done properly) they
            can see why it<br>
            has given the answer it has given.<br>
            <br>
            To answer your question, to get a explanation of what the
            rules engine did,<br>
            you could insert a logging object as a global into your
            rules session and<br>
            then add a log statement in the conclusion of each rule.<br>
            <br>
            <br>
            <br>
            --<br>
            View this message in context: <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/How-does-drools-provides-an-explanation-of-how-the-solution-was-arrived-tp4026253p4026263.html"
              target="_blank">http://drools.46999.n3.nabble.com/How-does-drools-provides-an-explanation-of-how-the-solution-was-arrived-tp4026253p4026263.html</a><br>
            <div class="HOEnZb">
              <div class="h5">Sent from the Drools: User forum 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>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
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>