You must either update an existing working memory object or insert a new working memory
object with the results. That's how rules communicate with each other.
GreG
On Aug 12, 2010, at 10:31 AM, Manav <manav7574(a)yahoo.com> wrote:
Hi,
I am using the version 5.x of drools and i have a scenario where i want to hold
the result of
a test in one rule to a temperory variable . This result will then be used in
another rule that will be fired
later in the sequence .
For ex :
salience 100
when
User (language.keySet contains "Japanese", $j_score :
language["Japanese"])
then
// do something
end
salience 50
when
User (language.keySet contains "French", $f_score :
language["French"])
then
// do something
end
salience 25
when
eval (($j_score + $f_score) > 4)
then
// update the same to db
end
Is this possible in Drools 5.x ?
Regards,
Manav
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users