Or just add a global "AlertNotifier alertNotifier" and in your rules call
alertNotifier.raiseAlert(...).
Of course you will have to actually write AlertNotifier yourself to do whatever you want
it to do but that is trivial as it's just a POJO.
Thomas
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Esteban Aliverti
Sent: 09 June 2010 02:24
To: Rules Users List
Subject: Re: [rules-users] alerts in drools
Why do you need alerts for? If you are trying to see somehow the execution of a group of
rules, you can attach an AgendaEventListener to your session:
ksession.addEventListener( new AgendaEventListener(){
....
}
);
Best,
2010/6/8 Fnu Mahalakshmi <FMahalakshmi@nyx.com<mailto:FMahalakshmi@nyx.com>>
Hi,
Is there anyway I can create "alerts" in drools??
If there is any documentation for it could someone point me towards it??
Thank you
-m
________________________________
Please consider the environment before printing this email.
Visit our website at
http://www.nyse.com
*****************************************************************************
Note: The information contained in this message and any attachment to it is privileged,
confidential and protected from disclosure. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering this message to the
intended recipient, you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have received this
communication in error, please notify the sender immediately by replying to the message,
and please delete it from your system. Thank you. NYSE Euronext.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
________________________________
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received
this message in error, please immediately notify the postmaster(a)nds.com and delete it from
your system as well as any copies. The content of e-mails as well as traffic data may be
monitored by NDS for employment and security purposes. To protect the environment please
do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United
Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603
8808 40-00
**************************************************************************************