<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi,<br>
    <br>
    I've set up a knowledge agent the change set configuration. While
    running the application I'm changing the rules file and the agent
    detects the change and rebuidls the knowledge base. But after that
    the output that should have changed didn't change.<br>
    <br>
    Thank you! :)<br>
    <br>
    Greetings<br>
    Tina<br>
    <br>
    <br>
    Here are the code snippets: <br>
    <br>
    <blockquote>ResourceFactory.getResourceChangeNotifierService().start();<br>
      ResourceFactory.getResourceChangeScannerService().start();<br>
      <br>
      KnowledgeAgent kagent =
      KnowledgeAgentFactory.newKnowledgeAgent("AITS CEP Engine Agent");<br>
kagent.applyChangeSet(ResourceFactory.newClassPathResource("changeset.xml"));<br>
              <br>
      KnowledgeBase knowledgeBase = kagent.getKnowledgeBase();<br>
              <br>
      session = knowledgeBase.newStatefulKnowledgeSession();<br>
    </blockquote>
    <br>
    <br>
    <blockquote>&lt;change-set
      xmlns='<a class="moz-txt-link-freetext" href="http://drools.org/drools-5.0/change-set">http://drools.org/drools-5.0/change-set</a>'<br>
                  xmlns:xs='<a class="moz-txt-link-freetext" href="http://www.w3.org/2001/XMSchema-instance">http://www.w3.org/2001/XMSchema-instance</a>'<br>
                 
      xs:schmeaLocation='<a class="moz-txt-link-freetext" href="http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd">http://drools.org/drools-5.0/change-setdrools-change-set-5.0.xsd</a>'
      &gt;<br>
      <br>
          &lt;add&gt;<br>
              &lt;resource source='classpath:testRule.drl' type='DRL'
      /&gt;<br>
          &lt;/add&gt;<br>
      <br>
      &lt;/change-set&gt;<br>
    </blockquote>
    <br>
    <br>
    The status information put out to the console are:<br>
    <br>
    [2010:08:230 16:08:93:debug] ResourceChangeScanner attempt to scan 1
    resources<br>
    [2010:08:230 16:08:93:debug] ResourceChangeScanner modified
    resource=[ClassPathResource path='testRule.drl'] : 1282139449234 :
    1282141364812<br>
    [2010:08:230 16:08:93:debug] ResourceChangeNotification received
    ChangeSet notification<br>
    [2010:08:230 16:08:93:debug] ResourceChangeScanner thread is waiting
    for 60 seconds.<br>
    [2010:08:230 16:08:93:debug] ResourceChangeNotification processing
    ChangeSet<br>
    [2010:08:230 16:08:93:debug] ResourceChangeNotification ChangeSet
    modified resource=[ClassPathResource path='testRule.drl'] for
    listener=org.drools.agent.impl.KnowledgeAgentImpl@1acfa31<br>
    [2010:08:230 16:08:93:debug] KnowledgeAgent received ChangeSet
    changed notification<br>
    [2010:08:230 16:08:93:info] KnowledgeAgent applying ChangeSet<br>
    [2010:08:230 16:08:93:debug] KnowledgeAgent rebuilding KnowledgeBase
    using ChangeSet<br>
    [2010:08:230 16:08:109:debug] ResourceChangeNotification thread is
    waiting for queue update<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent obtaining pkg
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
    resource=[ClassPathResource path='testRule.drl'] to
    KnowledgeDefinition=[Rule name=Insert Watcher Into Knowledge Base,
    agendaGroup=MAIN, salience=0, no-loop=false]<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing
    listener=org.drools.agent.impl.KnowledgeAgentImpl@1acfa31 to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
    resource=[ClassPathResource path='testRule.drl'] to
    KnowledgeDefinition=[Rule name=Add Event to Watcher Set,
    agendaGroup=MAIN, salience=0, no-loop=false]<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing
    listener=org.drools.agent.impl.KnowledgeAgentImpl@1acfa31 to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
    resource=[ClassPathResource path='testRule.drl'] to
    KnowledgeDefinition=org.drools.rule.TypeDeclaration@1bed3d1<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:218:debug] ResourceChangeNotification subscribing
    listener=org.drools.agent.impl.KnowledgeAgentImpl@1acfa31 to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent mapping
    resource=[ClassPathResource path='testRule.drl'] to
    KnowledgeDefinition=org.drools.rule.TypeDeclaration@1f528ab<br>
    [2010:08:230 16:08:218:debug] KnowledgeAgent notifier subscribing to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:234:debug] ResourceChangeNotification subscribing
    listener=org.drools.agent.impl.KnowledgeAgentImpl@1acfa31 to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:234:debug] KnowledgeAgent mapping
    resource=[ClassPathResource path='testRule.drl'] to
    KnowledgeDefinition=org.drools.rule.Function@1bb9829<br>
    [2010:08:230 16:08:234:debug] KnowledgeAgent notifier subscribing to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:234:debug] ResourceChangeNotification subscribing
    listener=org.drools.agent.impl.KnowledgeAgentImpl@1acfa31 to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:234:debug] KnowledgeAgent mapping
    resource=[ClassPathResource path='testRule.drl'] to
    KnowledgeDefinition=org.drools.rule.Function@eb840f<br>
    [2010:08:230 16:08:234:debug] KnowledgeAgent notifier subscribing to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:234:debug] ResourceChangeNotification subscribing
    listener=org.drools.agent.impl.KnowledgeAgentImpl@1acfa31 to
    resource=[ClassPathResource path='testRule.drl']<br>
    [2010:08:230 16:08:234:debug] KnowledgeAgent adding
    KnowledgeDefinitionsPackage net.eads.astrium.aits.cep.rules<br>
    [2010:08:230 16:08:250:info] KnowledgeAgent new KnowledgeBase now
    built and in use<br>
    [2010:08:230 16:08:250:debug] KnowledgeAgent finished rebuilding
    KnowledgeBase using ChangeSet<br>
  </body>
</html>