Dawid Wysakowicz commented on FLINK-16010:

There is already an issue that aims to solve the same/similar problem: 

> Support notFollowedBy with interval as the last part of a Pattern
> -----------------------------------------------------------------
>                 Key: FLINK-16010
>                 URL: https://issues.apache.org/jira/browse/FLINK-16010
>             Project: Flink
>          Issue Type: New Feature
>          Components: Library / CEP
>    Affects Versions: 1.9.0
>            Reporter: shuai.xu
>            Priority: Major
> Now, Pattern.begin("a").notFollowedBy("b") is not allowed in CEP. But this a 
> useful in many applications. Such as operators may want to find the users who 
> created an order but didn't pay in 10 minutes.
> So I propose to support that notFollowedBy() with a interval can be the last 
> part of a Pattern. 
> For example,  Pattern.begin("a").notFollowedBy("b").within(Time.minutes(10)) 
> will be valid in the future.
> Discuss in dev mail list is 
> [https://lists.apache.org/thread.html/rc505728048663d672ad379578ac67d3219f6076986c80a2362802ebb%40%3Cdev.flink.apache.org%3E]

This message was sent by Atlassian Jira

Reply via email to