I am looking for an EPL statement which fires an event each time the Id of the current message of my stream has raised more than one. Like (a+1 != b).
Something like this but I do not know the right syntax:
select * from pattern[a=test.SensorEvent(ids) -> b=test.SensorEvent(ids)(a+1!=b)];