So I build the KnowledgeBase with a url, and I can change the polling
interval from the default 60 with a property. The final piece of this
is the local cache directory that covers the situation of not being
able to connect to Guvnor. Sorry for my confusion.
- Mike
Message: 5
Date: Tue, 17 Feb 2009 23:14:45 +0000
From: Mark Proctor <mproctor(a)codehaus.org>
Subject: Re: [rules-users] KnowledgeAgent and Guvnor
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID: <499B44E5.7020509(a)codehaus.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
J Michael Dean wrote:
RuleAgent could be fed a properties file that included a URL
enabling
connection to Guvnor. I cannot find any examples of using a
KnowledgeAgent to connect to Guvnor - can someone point me in the
right direction? Thank you.
If you build a KnowledgeBase using urls an then pass
that KnowledgeBase
to the agent the agent will grab the urls and start scanning. If you
don't supply, or supply an empty knowledgebase, you use the
applyChangeSet(...) method which allows you t specify a Resource that
provides the changeset.xml which is where you place your urls.
The KnowledgeAgentFactory, KnowledgeBuilder and ChangeSet should all
provide some information on this.
Mark