Hi, I have a similar problem, in particular I need that before retracting facts, all the interested rules have fired. How do you solved it?<br><br><div><span class="gmail_quote">2007/2/8, Justine Hlista &lt;<a href="mailto:justine@vsasset.com">
justine@vsasset.com</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;">Need some instruction for retraction strategies. We have an application that receives messages about the status of various things in the system, and at the moment I am asserting these messages as facts. The rules are written against these messages. Various rules might be interested in various values in the message, and they all fire independently. The problem is that after all the existing rules that are interested in the message have fired, I want to retract the message. How do I ensure that all the interested rules have fired first?? 
<br><br>At the moment, I am trying to use a salience value of -1 to make sure a simple &quot;cleanup&quot; rule fires last:<br><br>rule &quot;cleanupMessage&quot;<br>no-loop true<br>salience -1<br>&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; msg : MyMessage()
<br>&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; retract(msg)<br>end<br><br>Does this sound like a reasonable solution? Is there a better one??<br><br>Thanks!<br>
<br>_______________________________________________<br>rules-users mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" 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>