<div>All sessions are created from the same Knowledge Base?<br></div><div><br></div>What does &quot;replicate&quot; mean, exactly?<div><br></div><div>Do you see the same effect when all facts are inserted into one session?</div>
<div><br></div><div>What happens if you do call update in rule &quot;sub 1&quot;?</div><div><br></div><div>-W</div><div><br><div class="gmail_quote">On 9 March 2012 14:58, gboro54 <span dir="ltr">&lt;<a href="mailto:gboro54@gmail.com">gboro54@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I have setup my drools execution as follows:<br>
  1.A single thread is pooling Orders from the db and insert them into X<br>
number of sessions(10) running on separate threads(fireUntilHalt()).<br>
<br>
  2. I have a set up rules which need to execute first to allow other rules<br>
to fire so I have rules such as:<br>
      rule &quot;main 1&quot;<br>
          salience 1000<br>
          no-loop true<br>
          when<br>
               &lt;some_conditions&gt;<br>
           then<br>
               &lt;modify order info&gt;(update is invoked)<br>
     end<br>
<br>
   3. There is another set of rules which then check the Order for these<br>
preconditions along with others<br>
       rule &quot;sub 1&quot;<br>
          salience 100<br>
          no-loop true<br>
          when<br>
               &lt;some_conditions&gt;<br>
               &lt;main 1 consequences present&gt;<br>
           then<br>
               &lt;modify order info&gt;(no update invoked as other rules in the<br>
session don&#39;t care)<br>
     end<br>
<br>
   4. I then have a single rule which has a low salience and should be last<br>
rule to fire in the activation which retracts the Order and hands it to a<br>
service for post processsing<br>
       rule &quot;END&quot;<br>
          salience -100<br>
          no-loop true<br>
          when<br>
               ord:Order<br>
           then<br>
               retract(ord);<br>
               invokeService(ord);<br>
     end<br>
<br>
<br>
The problem I am having is that my END rule is being invoked on certain<br>
Orders in working memory before the other activation have taken any affect(I<br>
have verified this by send a replicated order 1000 times and each time a<br>
large majority his the service before anything was modified on the order).<br>
<br>
Am I missing something?<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-Salience-and-no-loop-tp3812723p3812723.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-Salience-and-no-loop-tp3812723p3812723.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>