Hi,<br>thanks for so quick answer. I think, that using StatelessSession could be a solution, but as I understood, I have to insert only one fact to the facts base. But, I have about 2 billions of facts that I want to process with Drools, and execution time, is for me really important. A think, that inserting one fact at time means for me additional time to initialise engine (when adding a new fact, and removing old one). Am I right?<br>
<br>Thanks :)<br><br><div class="gmail_quote">2010/7/22 Pavel Tavoda <span dir="ltr">&lt;<a href="mailto:pavel.tavoda@gmail.com">pavel.tavoda@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Don&#39;t know details of your problem but it&#39;s typical situation where<br>
you can use StatelessSession, insert one fact at time and use<br>
activation-group.<br>
<br>
Pavel<br>
<br>
2010/7/22 tom ska &lt;<a href="mailto:tiberium.linux@gmail.com">tiberium.linux@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hello,<br>
&gt; I have a problem with defining rules. I insert many, many objects (facts) to<br>
&gt; ksession object (StatefulKnowledgeSession). I want to fire rules for all of<br>
&gt; them(facts), but I want to fire only one rule from all rules for each one<br>
&gt; fact(not always this same rule is fired, because I use salience).<br>
&gt; activation-group is not appropriate, because it works only with one object<br>
&gt; (fact) - rest is not processed by engine.<br>
&gt; Second question is: how can I stop processing rules, bot only for one fact,<br>
&gt; not for all of them.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; tom.<br>
&gt;<br>
&gt; P.S. forgive me my English... :)<br>
&gt; P.S.2 Firstly I want to do this in DRL, then, I&#39;ll try with XLS, and write<br>
&gt; post if I would find problems...<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
<div class="im">&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
</div><div class="im">&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt;<br>
&gt;<br>
</div>_______________________________________________<br>
rules-users mailing list<br>
<div class="im"><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
</div><div><div></div><div class="h5"><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>