Iterate over all Facts in WM and call update():<br><br>for( FactHandle fh: kSession.getFactHandles() ){<br> kSession.update( fh, kSession.getObject( fh ) );<br>}<br><br><div class="gmail_quote">2010/10/13 Yaniv Itzhaki <span dir="ltr"><<a href="mailto:iyaniv@gmail.com">iyaniv@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr"><div>Hi there, </div><div><br></div><div>Is there a way to "reset" the working memory so that all the rules will </div>
<div>run again when fireAllRules() is called? (I am running the startProcess method number of times with the same working memory) </div>
<div><br></div><div>I know that normally rules will only be run again when there was a change </div><div>and the fact was updated. but in my case I like to run all rules again </div><div>in some situations without having a change on the facts. </div>
<div><br></div><div>so is there a way to do this? </div><div><br></div><div>Thanks</div><div>Yaniv</div></div>
<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>
<br></blockquote></div><br>