Iterate over all Facts in WM and call update():

for( FactHandle fh: kSession.getFactHandles() ){
  kSession.update( fh, kSession.getObject( fh ) );
}

2010/10/13 Yaniv Itzhaki <iyaniv@gmail.com>
Hi there, 

Is there a way to "reset" the working memory so that all the rules will 
run again when fireAllRules() is called? (I am running the startProcess method number of times with the same working memory) 

I know that normally rules will only be run again when there was a change 
and the fact was updated. but in my case I like to run all rules again 
in some situations without having a change on the facts. 

so is there a way to do this? 

Thanks
Yaniv

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users