I'm trying to define NEsper EPL event statement for the following situation. I have 3 events - for example apple, banana and orange. They all have attributes - (bool) eatable, (datetime) timestamp. I want to catch the pattern, if more than one events are eatable - true at almost the same timestamp. If only one of them is eatable (only one has eatable true) at almost same timestamp(time difference for example 1s) it is ok. But if they have 2 or more eatable true at almost the same timestamp(time difference for example 1seconds) the pattern should be captured. How can I define the EPL statement for this situation? Thanks for any advice.
Best regards Narsu