Hi James.
I'm not a big expert, and probably the best way of doing this would be
with a perl mini-program and the 'report' action, but since I wouldn't
know how to do it :-/ here's an alternative:
You can use a SingleWithThreshold rule, only valid while the context
exists, and with a window large enough so that it wont expire while you
are counting events. When the threshold is reached, you can do the
following:
- add your action to the context
- reset the SWT rule
- create a new SWT rule to start the counting again.
I know it's not elegant, but it should work, I guess.
Atentamente,
Josep Abenza Martí
Arquitectura WEB, Liberty Seguros
Tlf. 93 489 05 00 - Ext. 61605
[EMAIL PROTECTED]
"James Crawford" <[EMAIL PROTECTED]>
Enviado por: [EMAIL PROTECTED]
06/04/2008 01:31
Para
[email protected]
cc
Asunto
[Simple-evcorr-users] Context Question
How to evaluate if a context has n number of events in it's store?
Example:
...
context=!BLAH
action=create BLAH; add BLAH $0
...
context=BLAH
action=add BLAH $0
How can I check that BLAH has had 5 events added to it? I want to be
able to add an action to a context, but only after n number of events
have been added to it's store.
Thanks in advance,
-James
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
=============================
Este mensaje se dirige exclusivamente a su destinatario. Puede contener
información confidencial sometida a secreto profesional o cuya divulgación
esté prohibida, en virtud de la legislación vigente. No esta permitida
su divulgación, copia o distribución a terceros sin la autorización previa
y por escrito de Liberty Seguros. Si ha recibido este mensaje por error,
le rogamos nos lo comunique inmediatamente por esta misma vía y proceda a
su destrucción.
This e-mail is intended exclusively for the individual or entity to which
it is addressed and may contain confidential or legally privileged information,
which may not be disclosed under current legislation. Any form of disclosure,
copying or distribution of this e-mail is strictly prohibited, save with
written authorisation from Liberty Seguros. If you have received this message
in error, please notify the sender immediately by e-mail and delete all copies
of the message.
=============================
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Register now and save $200. Hurry, offer ends at 11:59 p.m.,
Monday, April 7! Use priority code J8TLD2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users