<!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 bgcolor="#ffffff" text="#000000">
    On 29/08/2010 16:42, Wolfgang Laun wrote:
    <blockquote
      cite="mid:AANLkTin3=CRZK_mJBGLT8868cuaiYLXSwugVW8JyWvRc@mail.gmail.com"
      type="cite">I *would* have added something on dynamic salience
      when I went over the Expert manual, in 2008 (?) - if I'd only
      known it. Blogging is fine - but it just isn't Documentation, with
      a capital 'D'.<br>
      <br>
      This is also a nice case in point why I'm reluctant to invest work
      in maintaining Drools documentation: From where the heck would I
      get to know what's missing or obsolete or wrong? In some areas, I
      have gathered sufficient experience, but there are vast areas
      where I'm anything between spottily witted to downright ignorant.
      Also, there's some furious hacking going on all the time (I
      presume), and how would one rein that it to get to know what's
      happening?<br>
    </blockquote>
    Things do go into release notes, even if minimal:<br>
<a class="moz-txt-link-freetext" href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html_single/index.html">https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-introduction/html_single/index.html</a><br>
    <h3 class="title"><a id="d0e1663">2.3.2.&nbsp;Core Engine Enhancements</a></h3>
    <a id="d0e1663">* Dynamic salience for rules conflict resolution</a><br>
    <br>
    What's needed is&nbsp; for someone to update docs more based on release
    notes.<br>
    <br>
    Mark<br>
    <br>
    <blockquote
      cite="mid:AANLkTin3=CRZK_mJBGLT8868cuaiYLXSwugVW8JyWvRc@mail.gmail.com"
      type="cite">
      <br>
      Anyway, right now I'm collecting a loose set of How-tos, as a
      by-product of current work, and for areas where I deem it useful.
      See <a moz-do-not-send="true"
        href="http://members.inode.at/w.laun/">http://members.inode.at/w.laun/</a>
      and scroll down to "Rule Based Programming" / "Drools" / "Selected
      Topics". <br>
      <br>
      -W<br>
      <br>
      <div class="gmail_quote">On 27 August 2010 02:21, Mark Proctor <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</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;">
          <div bgcolor="#ffffff" text="#000000">
            <div class="im"> On 27/08/2010 00:05, Michael Neale wrote:
              <blockquote type="cite">Hahaha - yes - that is what I was
                thinking.&nbsp;
                <div><br>
                </div>
                <div>Dyanmic salience was added some time back - but its
                  one of those "did it and forgot about it" things.&nbsp;</div>
                <div>Also - historically salience has been "abused" more
                  than "used" - so perhaps there is less excitement to
                  talk about what you can do with it.&nbsp;</div>
                <div><br>
                </div>
                <div>But the case wolfgang mentioned is a good one - if
                  you know you need it you can probably safely use it. <br>
                </div>
              </blockquote>
            </div>
            <a moz-do-not-send="true"
              href="http://blog.athico.com/2007/05/dynamic-salience-expressions.html"
              target="_blank">http://blog.athico.com/2007/05/dynamic-salience-expressions.html</a>
            <div>
              <div class="h5"><br>
                <blockquote type="cite">
                  <div><br>
                    <div class="gmail_quote">On Thu, Aug 26, 2010 at
                      11:21 PM, Edson Tirelli <span dir="ltr">&lt;<a
                          moz-do-not-send="true"
                          href="mailto:tirelli@post.com" target="_blank">tirelli@post.com</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;">
                        <div>&nbsp;&nbsp; &nbsp;Wolfgang,</div>
                        <div><br>
                        </div>
                        <div>&nbsp;&nbsp; &nbsp;Not sure I understand what you mean,
                          but Drools supports dynamic salience:</div>
                        <div>
                          <div><br>
                          </div>
                          <div>rule "fire in rank order 1,2,..."</div>
                        </div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp;salience( -$rank )<br>
                          when<br>
                          &nbsp; &nbsp; &nbsp; Element( $rank : rank,... )<br>
                        </div>
                        <div>&nbsp;&nbsp; &nbsp; &nbsp;...</div>
                        <div>then</div>
                        <div>&nbsp;&nbsp; &nbsp; ...</div>
                        <div>end</div>
                        <div><br>
                        </div>
                        <div>&nbsp;&nbsp; &nbsp;Edson</div>
                        <div><br>
                          <br>
                          <div class="gmail_quote">2010/8/26 Wolfgang
                            Laun <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:wolfgang.laun@gmail.com"
                                target="_blank">wolfgang.laun@gmail.com</a>&gt;</span>
                            <div>
                              <div><br>
                                <blockquote class="gmail_quote"
                                  style="border-left: 1px solid rgb(204,
                                  204, 204); margin: 0pt 0pt 0pt 0.8ex;
                                  padding-left: 1ex;">Just FYI, but who
                                  knows ;-)<br>
                                  <br>
                                  Our proprietary vintage RBS has a
                                  feature is (admittedly) rarely used<br>
                                  but could come in handy, every now and
                                  then.<br>
                                  <br>
                                  Given this class<br>
                                  <br>
                                  &nbsp; class Element {<br>
                                  &nbsp; &nbsp; &nbsp; int rank; // rank &gt; 0<br>
                                  &nbsp; }<br>
                                  <br>
                                  and to fire a rule in ascending rank
                                  order, you can write (using<br>
                                  modified Drools syntax)<br>
                                  <br>
                                  rule "fire in rank order 1,2,..."<br>
                                  when<br>
                                  &nbsp; &nbsp; &nbsp; Element( $rank : rank,... )<br>
                                  &nbsp; &nbsp; &nbsp; // ...<br>
                                  salience -$rank &nbsp; &nbsp;### &lt;=<br>
                                  then<br>
                                  &nbsp; &nbsp; &nbsp;// ...<br>
                                  end<br>
                                  <br>
                                  The dynamically set salience does all
                                  the work. (Of course, you can<br>
                                  achieve the same order<br>
                                  in Drools easily enough.)<br>
                                  <br>
                                  This is possible since salience is a
                                  value that must be carried over<br>
                                  into the activation.<br>
                                  There is at least one other rule
                                  attribute that shares this property,<br>
                                  but I'm not sure<br>
                                  whether anything useful can be done
                                  with dynamic agenda groups.<br>
                                  <br>
                                  Cheers<br>
                                  -W<br>
_______________________________________________<br>
                                  rules-dev mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:rules-dev@lists.jboss.org"
                                    target="_blank">rules-dev@lists.jboss.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="https://lists.jboss.org/mailman/listinfo/rules-dev"
                                    target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
                                </blockquote>
                              </div>
                            </div>
                          </div>
                          <br>
                          <br clear="all">
                          <br>
                          -- <br>
                          &nbsp; Edson Tirelli<br>
                          &nbsp; JBoss Drools Core Development<br>
                          &nbsp; JBoss by Red Hat @ <a
                            moz-do-not-send="true"
                            href="http://www.jboss.com" target="_blank">www.jboss.com</a><br>
                        </div>
                        <br>
                        _______________________________________________<br>
                        rules-dev mailing list<br>
                        <a moz-do-not-send="true"
                          href="mailto:rules-dev@lists.jboss.org"
                          target="_blank">rules-dev@lists.jboss.org</a><br>
                        <a moz-do-not-send="true"
                          href="https://lists.jboss.org/mailman/listinfo/rules-dev"
                          target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
                        <br>
                      </blockquote>
                    </div>
                    <br>
                    <br clear="all">
                    <br>
                    -- <br>
                    Michael D Neale<br>
                    home: <a moz-do-not-send="true"
                      href="http://www.michaelneale.net" target="_blank">www.michaelneale.net</a><br>
                    blog: <a moz-do-not-send="true"
                      href="http://michaelneale.blogspot.com"
                      target="_blank">michaelneale.blogspot.com</a><br>
                  </div>
                  <pre><fieldset></fieldset>
_______________________________________________
rules-dev mailing list
<a moz-do-not-send="true" href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
                </blockquote>
                <br>
              </div>
            </div>
          </div>
          <br>
          _______________________________________________<br>
          rules-dev mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            href="https://lists.jboss.org/mailman/listinfo/rules-dev"
            target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-dev">https://lists.jboss.org/mailman/listinfo/rules-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>