<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.17023" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
CODE {
        FONT-FAMILY: "Courier New"
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=835181015-15062010><FONT face=Arial
color=#0000ff size=2>you'd probably be interested by </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=835181015-15062010><FONT face=Arial
color=#0000ff size=2><A
href="https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/builder/KnowledgeBuilder.html">https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/javadocs/stable/drools-api/org/drools/builder/KnowledgeBuilder.html</A></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=835181015-15062010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=835181015-15062010><FONT face=Arial
color=#0000ff size=2>and more particularly the knowledgeAgent, below is a
copy/paste of a part of the link above</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=835181015-15062010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=835181015-15062010><PRE> <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>
</PRE><PRE> 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
</PRE><PRE>kagent will periodically check if there is difference in the change-set, and upload your knowledge automagically</PRE></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] <B>De la part de</B> Fnu
Mahalakshmi<BR><B>Envoyé :</B> mardi 15 juin 2010 17:07<BR><B>À :</B>
'rules-users@lists.jboss.org'<BR><B>Objet :</B> [rules-users] Dynamic rule
file uploading<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi
guys,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have :
{R1.drl,R2.drl,R3.brl}<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">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.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I am
using:<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><CODE><FONT face="Courier New" color=white size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: white"> </SPAN></FONT></CODE><CODE><FONT
face="Courier New" color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black">File folder = </SPAN></FONT></CODE><CODE><B><FONT
face="Courier New" color=#7f0055 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #7f0055">new </SPAN></FONT></B></CODE><CODE><FONT
face="Courier New" color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black">File(</SPAN></FONT></CODE><CODE><FONT
face="Courier New" color=#2a00ff size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #2a00ff">"SRC/MAIN/RULES"</SPAN></FONT></CODE><CODE><FONT
face="Courier New" color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black">);</SPAN></FONT></CODE><FONT
face="Courier New" color=#333333 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: 'Courier New'"><BR></SPAN></FONT><CODE><FONT
face="Courier New" color=white size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: white"> </SPAN></FONT></CODE><CODE><FONT
face="Courier New" color=black size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: black">File[] listOfFiles = folder.listFiles();</SPAN></FONT></CODE><FONT
face="Courier New" color=#333333 size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: #333333; FONT-FAMILY: 'Courier New'"><BR><BR></SPAN></FONT><CODE><B><FONT
face="Courier New" color=#7f0055 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #7f0055">for listing all the
files in my rules directory.<o:p></o:p></SPAN></FONT></B></CODE></P>
<P class=MsoNormal><CODE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #7f0055">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?<o:p></o:p></SPAN></FONT></B></CODE></P>
<P class=MsoNormal><CODE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #7f0055">Is there a more
better way to do it rather than just listing all the files in the
directory??<o:p></o:p></SPAN></FONT></B></CODE></P>
<P class=MsoNormal><CODE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #7f0055"><o:p> </o:p></SPAN></FONT></B></CODE></P>
<P class=MsoNormal><CODE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #7f0055">Thanks,<o:p></o:p></SPAN></FONT></B></CODE></P>
<P class=MsoNormal><CODE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #7f0055">M</SPAN></FONT></B></CODE><FONT
face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P></DIV><PRE></PRE>
<P>
<HR SIZE=1>
<P></P>
<P><STRONG><FONT color=green>Please consider the environment before printing
this email.</FONT></STRONG></P>
<P><STRONG>Visit our website at <A
href="http://www.nyse.com">http://www.nyse.com</A>
<BR>*****************************************************************************
<BR>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. </STRONG></P><PRE></PRE><pre></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>
</pre></BODY></HTML>