[rules-users] re-fire all rules

esteban.aliverti at gmail.com esteban.aliverti at gmail.com
Thu Oct 14 13:37:59 EDT 2010


Also remember to reset or re-bind all your globals.

Best,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com


2010/10/14 Wolfgang Laun <wolfgang.laun at gmail.com>

> 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 at 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101014/a2536db4/attachment.html 


More information about the rules-users mailing list