[rules-users] How to Compute against WorkingMemory in Drools ?

Wolfgang Laun wolfgang.laun at gmail.com
Fri Apr 26 09:08:23 EDT 2013


On 26/04/2013, vr <veneet at aol.in> wrote:
> Not sure i fully understand the approach, Can you elaborate the same via a
> mock example please.
>
>>> "insert the facts into Working Memory as they arrive and after the last
>>> one."
>
> Do you mean the Batch of alerts needs to be explictly moved to the WM
> somehow ?.

Well, any object that should match a pattern in a rule must be
inserted into the WM.

I suspect that you plan to match a single (?) container (which,
confusingly, is also called "Alert") and use "from" to get at a batch
of *actual* Alert facts.

You might consider inserting the "actual" Alert facts, drop the
container and process the batch of Alert facts in WM.

-W


More information about the rules-users mailing list