you'd probably be interested by
https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/t...
and more particularly the knowledgeAgent, below is a copy/paste of a part of the link
above
<change-set
xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='drools-change-set-5.0.xsd' >
<add>
<resource source='http:org/domain/myrules.drl' type='DRL' />
<resource source='classpath:data/IntegrationExampleTest.xls'
type="DTABLE">
<decisiontable-conf input-type="XLS"
worksheet-name="Tables_2" />
</resource>
<resource source='file:org/drools/decisiontable/myflow.drf'
type='DRF' />
</add>
</change-set>
KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "test agent",
// the name of the agent
kaconf );
kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) ); // resource to the
change-set xml for the resources to add
kagent will periodically check if there is difference in the change-set, and upload your
knowledge automagically
________________________________
De : rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] De
la part de Fnu Mahalakshmi
Envoyé : mardi 15 juin 2010 17:07
À : 'rules-users(a)lists.jboss.org'
Objet : [rules-users] Dynamic rule file uploading
Hi guys,
I have : {R1.drl,R2.drl,R3.brl}
After conversion and loading I have {R1.drl,R2.drl,R3.brl,R3.drl} files in the same
directory where all my rules are stored.
I am using:
File folder = new File("SRC/MAIN/RULES");
File[] listOfFiles = folder.listFiles();
for listing all the files in my rules directory.
Now is there anyway that I can just hold on to the required files whenever my rule files
are updated rather than having to manually keeping deleting and updating my rules
directory?
Is there a more better way to do it rather than just listing all the files in the
directory??
Thanks,
M
________________________________
Please consider the environment before printing this email.
Visit our website at
http://www.nyse.com
*****************************************************************************
Note: The information contained in this message and any attachment to it is privileged,
confidential and protected from disclosure. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have received this
communication in error, please notify the sender immediately by replying to the message,
and please delete it from your system. Thank you. NYSE Euronext.
</PRE><p style="font-family:arial;color:grey"
style="font-size:13px">This message contains information that may be
privileged or confidential and is the property of the Capgemini Group. It is intended only
for the person to whom it is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the sender
immediately and delete all copies of this message.</p><PRE>