Joe, I am a bit confused -- if the context does not exist as you say, it is always empty, so you don't need an extra step for initializing its event buffer to an empty set of events. However, it the context can exist under certain circumstances, I would recommend to write a separate rule for these circumstances. First check if the context is there with 'context=MYCONTEXT', and then use 'action=empty MYCONTEXT'.
br, risto > From: Joe Prosser <[email protected]> > Subject: [Simple-evcorr-users] Create a context but don't empty it if it > already exists > To: [email protected] > Date: Thursday, April 16, 2009, 8:38 PM > Hey Folks, > I need to create a context if it doesn't exist, but it > seems like the > only way to do this without emptying it is with add. > > The problem is that I'm using an eval to determine the > contents of the > event store and by using add I have to do extra work to > remove the > data I added. > > Does anyone have know of a way to get around this? > > Cheers, > -Joe > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside > and > around Java (TM) technology - register by April 22, and > save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San > Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > _______________________________________________ > Simple-evcorr-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users > ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ Simple-evcorr-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
