Using Siddhi CEP 3.1.2 as standalone library, I am using try figure out how to correctly trigger the callback handler under a number of conditions.
Two events joined by logical AND
a AND b
I find with the above that if i provide both events, then i can trigger the callback handler, however I've also seen that if i subsequently provide either a or b then the handler is also triggered. I did not expect the latter to happen as I assumed there would be no match due to the previous execution of the handler... Is there a way to clear the streams following a successful match?
Two events joined by logical AND including a within.
a AND b within 5 sec
I've also found in the second case, that the "within" option is seemingly ignored. The callback is triggered regardless of the time gap between the events a and b.
Have I misunderstood the Siddhi documentation? I'd appreciate any guidance on these. Thanks