<!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">
J Michael Dean wrote:
<blockquote cite="mid:43357C74-7D37-44AF-BD98-427D8E69C1BE@comcast.net"
 type="cite">
  <div>So I build the KnowledgeBase with a url, and I can change the
polling interval from the default 60 with a property. &nbsp;The final piece
of this is the local cache directory that covers the situation of not
being able to connect to Guvnor. &nbsp;Sorry for my confusion.&nbsp; <br>
  </div>
</blockquote>
You can either build the knowledgebase using urls and/or you can use
the applychangeset on the knowledgeagent, you can actually update over
time using the applychangeset, so the urls used for an agent are no
longer fixed. The polling property is no longer on the agent itself, as
it has been moved to a service, which can be accessed via the
ResourceFactory.<br>
<br>
<a class="moz-txt-link-freetext" href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/agent/KnowledgeAgentFactory.html">https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/agent/KnowledgeAgentFactory.html</a><br>
<a class="moz-txt-link-freetext" href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/ChangeSet.html">https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/ChangeSet.html</a><br>
<br>
If the javadocs are not clear, provide an update on how to make them
clearer.<br>
<br>
Mark<br>
<br>
<blockquote cite="mid:43357C74-7D37-44AF-BD98-427D8E69C1BE@comcast.net"
 type="cite">
  <div><br>
  </div>
  <div>- Mike</div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div><br>
  </div>
  <div>Message: 5<br>
Date: Tue, 17 Feb 2009 23:14:45 +0000<br>
From: Mark Proctor &lt;<a moz-do-not-send="true"
 href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;<br>
Subject: Re: [rules-users] KnowledgeAgent and Guvnor<br>
To: Rules Users List &lt;<a moz-do-not-send="true"
 href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
Message-ID: &lt;<a moz-do-not-send="true"
 href="mailto:499B44E5.7020509@codehaus.org">499B44E5.7020509@codehaus.org</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
  <br>
J Michael Dean wrote:<br>
  <blockquote type="cite">RuleAgent could be fed a properties file that
included a URL enabling&nbsp;<br>
  </blockquote>
  <blockquote type="cite">connection to Guvnor. &nbsp;I cannot find any
examples of using a&nbsp;<br>
  </blockquote>
  <blockquote type="cite">KnowledgeAgent to connect to Guvnor - can
someone point me in the&nbsp;<br>
  </blockquote>
  <blockquote type="cite">right direction? &nbsp;Thank you.<br>
  </blockquote>
If you build a KnowledgeBase using urls an then pass that KnowledgeBase&nbsp;<br>
to the agent the agent will grab the urls and start scanning. If you&nbsp;<br>
don't supply, or supply an empty knowledgebase, you use the&nbsp;<br>
applyChangeSet(...) method which allows you t specify a Resource that&nbsp;<br>
provides the changeset.xml which is where you place your urls.<br>
  <br>
The KnowledgeAgentFactory, KnowledgeBuilder and ChangeSet should all&nbsp;<br>
provide some information on this.<br>
  <br>
Mark</div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>