Hi,
I am new to Drools and am facing an issue I do not is supported here.
I have particular record types that the rules process. As I process them, I
want to maintain a map (or persist) of IDs of all records processed. I
believe this can be done in actions.
In some conditions, I want to lookup values in this map/table/persistent
memory to see if this ID is present.
There are more such cases in my usage where I can make use of a shared
memory between rules.
Does Drools have any feature which can be used for this purpose? I looked at
the working memory, but that seems to be relevant for working data, rule
bases, etc. and not as a shared memory. Am I right in my understanding?
Thanks and regards,
Sameer
Show replies by date
Working memory is shared between rules. That is it's purpose. :)
________________________________
From: Sameer Pokarna <sameer(a)emsquare.net>
To: rules-users(a)lists.jboss.org
Sent: Tuesday, October 6, 2009 9:05:20 AM
Subject: [rules-users] Usage of working memory for sharing data between action and
subsequent conditions
Hi,
I am new to Drools and am facing an issue I do not is
supported here.
I have particular record types that the rules process. As I
process them, I want to maintain a map (or persist) of IDs of all records
processed. I believe this can be done in actions.
In some conditions, I want to lookup values in this
map/table/persistent memory to see if this ID is present.
There are more such cases in my usage where I can make use
of a shared memory between rules.
Does Drools have any feature which can be used for this
purpose? I looked at the working memory, but that seems to be relevant for
working data, rule bases, etc. and not as a shared memory. Am I right in my
understanding?
Thanks and regards,
Sameer