<br>   Nick,<br><br>   I see. In any case, Drools will not allow you to do that without recompiling the knowledge base, but, why don&#39;t you simply make your &quot;MyFunctions&quot; class be a delegate to your actual functions? So, whenever you reload your fuctions, all you need to do is rewire things inside your MyFunctions class... isolated and clean... no need to have things rewired in Drools side... sounds much lighter than any other approach, even if it was possible to do the rewire in Drools, it would certainly be heavier...<br>
<br>   Just an idea...<br>   <br>   Edson<br><br><div class="gmail_quote">2009/10/14 Nicholas Hemley <span dir="ltr">&lt;<a href="mailto:nic.hemley@sidonis.com">nic.hemley@sidonis.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-GB">

<div>

<p class="MsoNormal">Edson,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Actually, I only use custom action classes in the RHS (see
below)</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">e.g.</p>

<p class="MsoNormal">rule TEARDOWN_3004865719</p>

<p class="MsoNormal">                when</p>

<p class="MsoNormal">                                child0:MyClass
(</p>

<p class="MsoNormal">                                                state1
== 0,</p>

<p class="MsoNormal">                                                state2
== 0</p>

<p class="MsoNormal">                                )</p>

<p class="MsoNormal">                then</p>

<p class="MsoNormal">                                MyFunctions.performOperation(
&quot;TEARDOWN _3004865719&quot;,</p>

<p class="MsoNormal">                                                 &quot;message&quot;,</p>

<p class="MsoNormal">                                                 child0,</p>

<p class="MsoNormal">                                                 true
);</p>

<p class="MsoNormal">                end</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">The classes referenced in the LHS will always stay the same.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">So if we want to re-load the class MyFunctions (since these
custom actions may be updated), then I currently have to re-create the
StatefulKnowledgeSession from a new KnowledgeBase, etc. so that the findClass()
method is called on MyClassLoader.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Consolas;">Cheerio,</span></p>

<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Consolas;">Nic</span></p>

<p class="MsoNormal"><span style="font-size: 10.5pt; font-family: Consolas;"> </span></p>

<p class="MsoNormal"><b><span style="font-size: 8pt; color: rgb(31, 73, 125);">Nicholas Hemley</span></b></p>

<p class="MsoNormal"><b><span style="font-size: 8pt; color: rgb(31, 73, 125);">Senior Developer</span></b></p>

<p class="MsoNormal"><b><span style="font-size: 8pt; color: rgb(31, 73, 125);">Sidonis | Powering a New Generation of Service Assurance</span></b><span style="font-size: 8pt; color: rgb(31, 73, 125);"></span></p>

</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><br clear="all"><br>-- <br>  Edson Tirelli<br>  JBoss Drools Core Development<br>  JBoss by Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a><br>