I have to implement the rule, that if A occurs, B hast to occur next without any event in between. Usually I could do this by just using the patter:
A->(B and not ...)
But I have to implement it very dynamical. That means that I don't know all of the possible events in advance. Does anybody know how i could implement this? I guess I need something like:
A->(B and not any other event)
Thank you for your help. :)
See this other ticket Esper statement to check, if A is followed by B without any other As in between It explains the match-recognize.
Here are a few path you can go down in respect to many types of events.
Create-schema with inherits plus typeof-function
Variant stream
Normalize with insert-into
Make each event a column
You can probably combine some of these approaches. You can also use Java interfaces and abstract classes in replacement of "inherits" since the type system recognizes superclasses/interfaces.