<div dir="ltr">We assume, even when a helper function is used, that the list is static.<div><br></div><div>If you want to force server-side invocation of your helper function to refresh the list you need to include a parameter in the definition. This signals the list is dynamic and should be refreshed using the helper function.</div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">See &quot;16.10.1. Advanced enumeration concepts&quot; in the User Guide:</font></div><div><a style="color:rgb(51,51,51);line-height:18px;text-align:justify"><p style="display:inline!important">
<font face="arial, helvetica, sans-serif"><br></font></p></a></div><div><a id="d0e16726" style="color:rgb(51,51,51);line-height:18px;text-align:justify"><p style="display:inline!important"><font face="arial, helvetica, sans-serif">&quot;In the above cases, the values in the lists are calculated up front. This is fine for relatively static data, or small amounts of data. Imagine a scenario where you have lists of countries, each country has a list of states, each state has a list of localities, each locality has a list of streets and so on... You can see how this is a lot of data, and it can not be loaded up. The lists should be loaded dependent on what country was selected etc...&quot;</font></p>
</a></div><div><a style="color:rgb(51,51,51);line-height:18px;text-align:justify"><p style="display:inline!important"><font face="arial, helvetica, sans-serif"><br></font></p></a></div><div><a style="color:rgb(51,51,51);line-height:18px;text-align:justify"><p style="display:inline!important">
<font face="arial, helvetica, sans-serif">With kind regards,</font></p></a></div><div><a style="color:rgb(51,51,51);line-height:18px;text-align:justify"><p style="display:inline!important"><font face="arial, helvetica, sans-serif"><br>
</font></p></a></div><div><a style="color:rgb(51,51,51);line-height:18px;text-align:justify"><p style="display:inline!important"><font face="arial, helvetica, sans-serif">Mike</font></p></a></div><div><a id="d0e16726" style="color:rgb(51,51,51);font-family:&#39;Lucida Grande&#39;,Geneva,Verdana,Arial,sans-serif;font-size:12px;line-height:18px;text-align:justify"><p>
<br></p></a></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 March 2014 15:52, SrjTx <span dir="ltr">&lt;<a href="mailto:clickthex@yahoo.com" target="_blank">clickthex@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have an enum along the lines of<br>
<br>
Bean.x : (new com.xyz.MyClass()).getNames()<br>
<br>
Which works fine and getNames() is called when JBoss first starts up and the<br>
first time that a rule using this enum is created.<br>
<br>
But, getNames() is never called again.  Either when a new rule is created or<br>
if you do the close/reopen the editor thing.  Which means that the enum gets<br>
out of date with the DB it is pulling from.<br>
<br>
I did find a work-around, if you also edit the .enumeration file, I just add<br>
a blank entry at the bottom of table - then getNames() is called with a new<br>
rule is created of you do the close/reopen the editor thing.<br>
<br>
Is there a fix in head for this?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/6-0-1-F-Enumeration-Reloading-Weirdness-tp4028568.html" target="_blank">http://drools.46999.n3.nabble.com/6-0-1-F-Enumeration-Reloading-Weirdness-tp4028568.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">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>
</blockquote></div><br></div>