[rules-users] fact updates with query-only usage of Drools

Wolfgang Laun wolfgang.laun at gmail.com
Fri Jun 14 03:36:51 EDT 2013


On 14/06/2013, Andras Nagy <andras.istvan.nagy at gmail.com> wrote:
> Dear All,
> In a multithreaded application I plan to use Drools the following way:
> -use only queries but not rules
> -keep an outside reference to all facts inserted into the working memory,
> and keep modifying the facts after they were inserted
> -use locks synchronizing outside fact changes and Drools query executions
> (happening parallelly on other threads), to make sure that when the queries
> are executed, the facts are always in a consistent state
> Given that the application only uses queries (and no rules), I wonder if
> there is a need to notify the engine of the fact changes (e.g.
> workingMemory.update(...) etc.).
> Could someone confirm that?

How else would the engine know when to reevaluate LHSs?

-W

>
> Thank you,
> Andras
>


More information about the rules-users mailing list