[rules-users] Correlation of events
Framewala, Ashfaq Y
Ashfaq.Framewala at gs.com
Wed Feb 28 02:28:11 EST 2007
Hi,
I am working on a system where I need to correlate few error conditions
happening in the network infrastructure. I have gone through the
documentation for Jboss rules engine (Drools) and I am planning to use
it for the correlation purpose.
Can anyone let me know a way in which I can get an object from
workingmemory in the "then" part of the rule? For e.g., I need the
following
rule "new error"
when
$error : Error (state == NEW_ERROR)
then
(search workingmemory if this error was already
registered)
if (found)
{
$errFromWorkingMemory.setLastTimestamp(currentTimestamp)
retract($error);
}
End
Thanks,
Ashfaq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070228/4e0558c8/attachment.html
More information about the rules-users
mailing list