Honestly, I didn&#39;t have time to take a look at it :(<div>Could you please provide me a simple test project where I can see this issue?</div><div><br></div><div>Best,<br clear="all"><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>

<br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>


<br><br><div class="gmail_quote">2010/10/24 Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi Esteban,<br>
    <br>
    #2 is still a problem for me. Have you found something out?<br>
    <br>
    Thank you.<br><font color="#888888">
    Tina</font><div><div></div><div class="h5"><br>
    <br>
    <blockquote type="cite">Hi,
      <div><br>
      </div>
      <div>#1  I&#39;m not sure if I&#39;ve understood it correct. Is the
        message displayed every time a resource containing declares is
        modified or does is it displayed if the declare statements are
        changed?</div>
      <div><font color="#009900">The message
          will appear every time a resource containing a type definition
          is modified.</font></div>
      <div><font color="#009900"><br>
        </font></div>
      <div><font color="#009900"><span style="color:rgb(0, 0, 0)">#2 The
            following extract of my original log extract says that the
            LHS of two rules has been changed. But I haven&#39;t modified
            anything on them. I&#39;ve just deleted a rule. So what does it
            mean? Or am I missunderstanding the messages? Because for
            the the first rule no changes have been detected (and that
            is what I would expect for all rules except the deleted on.)</span></font></div>
      <div><font color="#009900">This is
          strange. This message should only appear if the LHS of a rule
          has changed. I will take a look to see if this is a bug.</font></div>
      <div><font color="#009900"><span style="color:rgb(0, 0, 0)"><br>
          </span></font></div>
      <div><font color="#009900"><span style="color:rgb(0, 0, 0)"><br>
          </span></font></div>
      <div>Best,<br clear="all">
        <br>
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
        <br>
        Esteban Aliverti<br>
        - Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com
        </a><br>
        - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
        <br>
        <br>
        <div class="gmail_quote">2010/8/24 Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de" target="_blank">tviessmann@stud.hs-bremen.de</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
            <div bgcolor="#ffffff" text="#000000"> Thank you for the
              explanation, Esteban. :)<br>
              I&#39;m sorry, but I have still some uncertainties about it.<br>
              <br>
              #1  I&#39;m not sure if I&#39;ve understood it correct. Is the
              message displayed every time a resource containing
              declares is modified or does is it displayed if the
              declare statements are changed?<br>
              <br>
              #2 The following extract of my original log extract says
              that the LHS of two rules has been changed. But I haven&#39;t
              modified anything on them. I&#39;ve just deleted a rule. So
              what does it mean? Or am I missunderstanding the messages?
              Because for the the first rule no changes have been
              detected (and that is what I would expect for all rules
              except the deleted on.)
              <div><br>
                <blockquote>[2010:08:235 21:08:546:debug]
                  BinaryResourceDiffProducerImpl: [Rule name=<i>Warning
                    threshold exceeded to many times</i>,
                  agendaGroup=MAIN, salience=0, no-loop=false] didn&#39;t
                  change. Removing from diff package and adding it to
                  unmodified list.<br>
                  [2010:08:235 21:08:546:debug]
                  BinaryResourceDiffProducerImpl: Comparing [Rule name=<i><u>I</u>nsert
                    Watcher Into Knowledge Base</i>, agendaGroup=MAIN,
                  salience=0, no-loop=false] against [Rule name=Insert
                  Watcher Into Knowledge Base, agendaGroup=MAIN,
                  salience=0, no-loop=false]<br>
                  [2010:08:235 21:08:546:debug]
                  BinaryResourceDiffProducerImpl: <b>The rules have
                    different LHS</b><br>
                  [2010:08:235 21:08:546:debug]
                  BinaryResourceDiffProducerImpl: Comparing [Rule name=<i>Add
                    Event to Watcher Set</i>, agendaGroup=MAIN,
                  salience=0, no-loop=false] against [Rule name=Add
                  Event to Watcher Set, agendaGroup=MAIN, salience=0,
                  no-loop=false]<br>
                  [2010:08:235 21:08:546:debug]
                  BinaryResourceDiffProducerImpl: <b>The rules have
                    different LHS</b><br>
                </blockquote>
              </div>
              Thanks :)<br>
              Tina<br>
              <br>
              <br>
              <br>
              Am 23.08.2010 23:33, schrieb Esteban Aliverti:
              <div>
                <div>
                  <blockquote type="cite">When working on incremental
                    change-set processing mode, Knowledge Agent performs
                    a diff between the original and the modified 
                    resources. Modified resources are compiled, and a
                    visitor pattern is used to loop over knowledge
                    definitions (such as rules, functions, queries,
                    etc.).
                    <div> So if rule1 was modified in the new resource,
                      it is removed from the original kbase and replaced
                      with the new implementation. The thing is that
                      kagent doesn&#39;t implement a visitor for
                      TypeDeclaration (when you use <b>declare</b> in
                      your DRL to define your model) so it doesn&#39;t know
                      how to handle them. </div>
                    <div>I have recently fix a typo in the visitor
                      implementation that prevented you to receive a
                      better message:</div>
                    <div><br>
                    </div>
                    <div>&quot;BinaryResourceDiffProducerImpl: Couldn&#39;t
                      handle &quot;+yourDefinitionName+&quot;. We must leave it in
                      the new Package.&quot;</div>
                    <div><br>
                    </div>
                    <div>This means that kagent doesn&#39;t support
                      modifications on declared types yet.</div>
                    <div><br>
                    </div>
                    <div>Best,</div>
                    <div><br clear="all">
                      <br>
                      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br>
                      <br>
                      Esteban Aliverti<br>
                      - Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com

                      </a><br>
                      - Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>
                      <br>
                      <br>
                      <div class="gmail_quote">2010/8/23 Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de" target="_blank">tviessmann@stud.hs-bremen.de</a>&gt;</span><br>
                        <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
                          <div bgcolor="#ffffff" text="#000000"> Hi,<br>
                            <br>
                            I&#39;m getting a two red highlighted outputs in
                            eclipse if I modify my rules file during run
                            time. Besides that the modifications seem to
                            work.<br>
                            What does it mean?<br>
                            <br>
                            The full output I get when the resource
                            change is detected is listed below. The bold
                            lines are the concerned ones.<br>
                            <br>
                            Thanks for any help! :)<br>
                            Tina<br>
                            <br>
                            <br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeScanner attempt to scan 1
                            resources<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeScanner modified
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] : 1282559206875 :
                            1282591705000<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeNotification received
                            ChangeSet notification<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeScanner thread is waiting for
                            10 seconds.<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeNotification processing
                            ChangeSet<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeNotification ChangeSet
                            modified resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] for
                            listener=org.drools.agent.impl.KnowledgeAgentImpl@b40ec4<br>
                            [2010:08:235 21:08:296:debug] KnowledgeAgent
                            received ChangeSet changed notification<br>
                            [2010:08:235 21:08:296:info] KnowledgeAgent
                            applying ChangeSet<br>
                            [2010:08:235 21:08:296:debug] KnowledgeAgent
                            removing mappings for
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] with unsubscribe=true<br>
                            [2010:08:235 21:08:296:debug] KnowledgeAgent
                            notifier unsubscribing to
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeNotification unsubscribing
                            listener=org.drools.agent.impl.KnowledgeAgentImpl@b40ec4
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeScanner unsubcribing
                            notifier=org.drools.io.impl.ResourceChangeNotifierImpl@13576a2
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeScanner
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] now has no subscribers<br>
                            [2010:08:235 21:08:296:debug] KnowledgeAgent
                            rebuilding KnowledgeBase using ChangeSet<br>
                            [2010:08:235 21:08:296:info] KnowledgeAgent
                            performing an incremental build of the
                            ChangeSet<br>
                            [2010:08:235 21:08:296:debug]
                            ResourceChangeNotification thread is waiting
                            for queue update<br>
                            [INFO ] 21:30:10,375 [main] &quot;Event
                            retracted.&quot;  (DRL Logger)<br>
                            [2010:08:235 21:08:453:debug]
                            KnowledgeAgent: Diffing: [ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [INFO ] 21:30:10,453 [main] &quot;Event
                            retracted.&quot;  (DRL Logger)<br>
                            [2010:08:235 21:08:500:debug]
                            BinaryResourceDiffProducerImpl: [Rule
                            name=delete parameter values,
                            agendaGroup=MAIN, salience=0, no-loop=false]
                            is not present anymore. Adding to removed
                            list.<br>
                            [2010:08:235 21:08:500:debug]
                            BinaryResourceDiffProducerImpl:
                            org.drools.rule.Function@67fe80 did change.
                            Marking as removed so it new version could
                            be added later.<br>
                            [2010:08:235 21:08:500:debug]
                            BinaryResourceDiffProducerImpl: Comparing
                            [Rule name=Warning threshold exceeded to
                            many times, agendaGroup=MAIN, salience=0,
                            no-loop=false] against [Rule name=Warning
                            threshold exceeded to many times,
                            agendaGroup=MAIN, salience=0, no-loop=false]<br>
                            <b>no visitor implementation for : class
                              org.drools.rule.TypeDeclaration :
                              org.drools.rule.TypeDeclaration@95f290<br>
                              no visitor implementation for : class
                              org.drools.rule.TypeDeclaration :
                              org.drools.rule.TypeDeclaration@bfd66a</b><br>
                            [2010:08:235 21:08:546:debug]
                            BinaryResourceDiffProducerImpl: [Rule
                            name=Warning threshold exceeded to many
                            times, agendaGroup=MAIN, salience=0,
                            no-loop=false] didn&#39;t change. Removing from
                            diff package and adding it to unmodified
                            list.<br>
                            [2010:08:235 21:08:546:debug]
                            BinaryResourceDiffProducerImpl: Comparing
                            [Rule name=Insert Watcher Into Knowledge
                            Base, agendaGroup=MAIN, salience=0,
                            no-loop=false] against [Rule name=Insert
                            Watcher Into Knowledge Base,
                            agendaGroup=MAIN, salience=0, no-loop=false]<br>
                            [2010:08:235 21:08:546:debug]
                            BinaryResourceDiffProducerImpl: The rules
                            have different LHS<br>
                            [2010:08:235 21:08:546:debug]
                            BinaryResourceDiffProducerImpl: Comparing
                            [Rule name=Add Event to Watcher Set,
                            agendaGroup=MAIN, salience=0, no-loop=false]
                            against [Rule name=Add Event to Watcher Set,
                            agendaGroup=MAIN, salience=0, no-loop=false]<br>
                            [2010:08:235 21:08:546:debug]
                            BinaryResourceDiffProducerImpl: The rules
                            have different LHS<br>
                            [2010:08:235 21:08:546:debug]
                            KnowledgeAgent: Removing: [Rule name=delete
                            parameter values, agendaGroup=MAIN,
                            salience=0, no-loop=false]<br>
                            [2010:08:235 21:08:546:debug] KnowledgeAgent
                            removing Rule=[Rule name=delete parameter
                            values, agendaGroup=MAIN, salience=0,
                            no-loop=false] from
                            package=net.eads.astrium.aits.cep.rules<br>
                            [2010:08:235 21:08:546:debug]
                            KnowledgeAgent: Removing:
                            org.drools.rule.Function@67fe80<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            mapping resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] to
                            KnowledgeDefinition=[Rule name=Warning
                            threshold exceeded to many times,
                            agendaGroup=MAIN, salience=0, no-loop=false]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            obtaining pkg resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            mapping resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] to
                            KnowledgeDefinition=[Rule name=Insert
                            Watcher Into Knowledge Base,
                            agendaGroup=MAIN, salience=0, no-loop=false]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            notifier subscribing to
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug]
                            ResourceChangeNotification subscribing
                            listener=org.drools.agent.impl.KnowledgeAgentImpl@b40ec4
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug]
                            ResourceChangeScanner subcribing
                            notifier=org.drools.io.impl.ResourceChangeNotifierImpl@13576a2
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            mapping resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] to
                            KnowledgeDefinition=[Rule name=Add Event to
                            Watcher Set, agendaGroup=MAIN, salience=0,
                            no-loop=false]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            notifier subscribing to
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug]
                            ResourceChangeNotification subscribing
                            listener=org.drools.agent.impl.KnowledgeAgentImpl@b40ec4
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            mapping resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] to
                            KnowledgeDefinition=org.drools.rule.TypeDeclaration@17dff15<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            notifier subscribing to
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug]
                            ResourceChangeNotification subscribing
                            listener=org.drools.agent.impl.KnowledgeAgentImpl@b40ec4
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            mapping resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] to
                            KnowledgeDefinition=org.drools.rule.TypeDeclaration@f5cbda<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            notifier subscribing to
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug]
                            ResourceChangeNotification subscribing
                            listener=org.drools.agent.impl.KnowledgeAgentImpl@b40ec4
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            mapping resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;] to
                            KnowledgeDefinition=org.drools.rule.Function@11a59ce<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            notifier subscribing to
                            resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug]
                            ResourceChangeNotification subscribing
                            listener=org.drools.agent.impl.KnowledgeAgentImpl@b40ec4
                            to resource=[ClassPathResource
                            path=&#39;testRule.drl&#39;]<br>
                            [2010:08:235 21:08:562:debug] KnowledgeAgent
                            adding KnowledgeDefinitionsPackage
                            net.eads.astrium.aits.cep.rules<br>
                            [2010:08:235 21:08:578:info] KnowledgeAgent
                            incremental build of KnowledgeBase finished
                            and in use<br>
                            [2010:08:235 21:08:578:debug] KnowledgeAgent
                            finished rebuilding KnowledgeBase using
                            ChangeSet </div>
                          <br>
_______________________________________________<br>
                          rules-users mailing list<br>
                          <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
                          <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
                          <br>
                        </blockquote>
                      </div>
                      <br>
                    </div>
                    <pre><fieldset></fieldset>
_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
                  </blockquote>
                  <br>
                </div>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            rules-users mailing list<br>
            <a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
            <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <pre><fieldset></fieldset>
_______________________________________________
rules-users mailing list
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>