<span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">ResourceChangeScanner is not bound to Guvnor in any way. It just check for modifications in one or more resources. Resources can be files in the filesystem, in the classpath or in an URL (being Guvnor a subset of these).</span><div>
<font class="Apple-style-span" color="#222222" face="arial, sans-serif">So, you can configure a knowledge agent with a handmade change-set (an xml containing the resources definitions) pointing to your resources. Don't forget to start ResourceChangeScanner and ResourceChangeNotifier using ResourceFactory class.</font></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">If you want to have more control over when the changes in a package should be applied, you can turn off (or never start) these 2 services and force a scan in the resources using ResourceChangeScannerImpl.scan(). For an example of this last approach, you can take a look at this test and its superclass: </font></div>
<div><a href="https://raw.github.com/droolsjbpm/drools/master/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentIncrementalChangeSetTest.java">https://raw.github.com/droolsjbpm/drools/master/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentIncrementalChangeSetTest.java</a></div>
<div><a href="https://raw.github.com/droolsjbpm/drools/master/drools-compiler/src/test/java/org/drools/agent/BaseKnowledgeAgentTest.java">https://raw.github.com/droolsjbpm/drools/master/drools-compiler/src/test/java/org/drools/agent/BaseKnowledgeAgentTest.java</a></div>
<div><font class="Apple-style-span" color="#222222" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" color="#222222" face="arial, sans-serif">Best Regards, <br clear="all"></font><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">2011/12/5 Michael Anstis <span dir="ltr"><<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Is there not a file scanner too that can be used with a KnowledgeAgent?<br><br>I also recall there being some talk (reasonably) recently about the Resource scanner being able to use FILE URLs. Have you tried?<br><br>With kind regards,<br>
<br>Mike<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">On 5 December 2011 19:20, starfish15 <span dir="ltr"><<a href="mailto:pooja.ghosh@accenture.com" target="_blank">pooja.ghosh@accenture.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As such we are not using GUVNOR in the runtime for rules. We simply have the<br>
PKG files. Create them using GUVNOR, and then save the binary PKG files in<br>
our environment to run the rules.<br>
<br>
Since we r not using GUVNOR, we cant use Resource Scanner to know the<br>
updated PKG files. Also we want to run the rules w/o a server re-start whn<br>
the rules are further modified.<br>
<br>
Any assistance in the same will be highly appreciated.<br>
<br>
Regards,<br>
starfish<br>
<span><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Want-help-with-Resource-Scanner-though-not-using-changeSets-tp3562282p3562282.html" target="_blank">http://drools.46999.n3.nabble.com/Want-help-with-Resource-Scanner-though-not-using-changeSets-tp3562282p3562282.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>
</font></span></blockquote></div><br>
</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>