I try to remove Events between two distinct events.
I've found a way to declare a dynamic context, which meets the situation in which I want to remove the events.
create objectarray schema ParentEvent(Start Bool,End Bool)
create objectarray schema ChildEvent() inherits ParentEvent
create context RemoveContext initiated by ChildEvent(Start) terminated by ChildEvent(End)
I simply cant figure out, how to construct a output stream or Window? which holds only all the other ParentEvent that are not in the context.
The way I insert the Events in my OutputStream:
insert into MyStream.out select * from ParentEvent(Start or End)