<br>&nbsp;&nbsp; Since you are (re)using a stateful session, rules that fired before will not fire again just because you changed the rulebase.<br>&nbsp;&nbsp; This is expected behavior.<br><br>&nbsp;&nbsp; []s<br>&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2008/2/5, Michael Katai &lt;<a href="mailto:mk.others@gmx.at">mk.others@gmx.at</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello!<br><br>I&#39;ve googeled and searched the mailing list archive, but i couldn&#39;t solve my<br>current problem:<br>Every time i create a new rule (while runtime) i use:<br><br>&nbsp;&nbsp;PackageBuilder builder = new PackageBuilder();<br>
&nbsp;&nbsp;builder.addPackageFromDrl(source);<br>&nbsp;&nbsp;if(builder.hasErrors())<br>&nbsp;&nbsp;&nbsp;&nbsp;...<br>&nbsp;&nbsp;Package pkg = builder.getPackage();<br>&nbsp;&nbsp;ruleBase.addPackage(pkg);<br>&nbsp;&nbsp;session.fireAllRules();<br><br>Every time, fireAllRules is executed, only the last, newest rule will fired.<br>
Where is my mistake?<br><br>ruleBase (and factspace) is created as<br>&nbsp;&nbsp;session = ruleBase.newStatefulSession();<br>&nbsp;&nbsp;factspace = new FactSpace(session);<br><br>thanks in advance,<br>&nbsp;&nbsp; michael<br><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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;JBoss Drools Core Development<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>