You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dawid Wysakowicz (JIRA)" <ji...@apache.org> on 2018/05/24 09:48:00 UTC

[jira] [Commented] (FLINK-9431) Introduce TimeEnd State to flink cep

    [ https://issues.apache.org/jira/browse/FLINK-9431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16488729#comment-16488729 ] 

Dawid Wysakowicz commented on FLINK-9431:
-----------------------------------------

Have you considered using timed out patterns? You could express your case with:
{code:java}
Pattern.begin('A').followedBy("B").withing(Time.minutes(5)){code}
And look for the timed out patterns, rather than the matched ones. Will it work for you this way?

> Introduce TimeEnd State to flink cep
> ------------------------------------
>
>                 Key: FLINK-9431
>                 URL: https://issues.apache.org/jira/browse/FLINK-9431
>             Project: Flink
>          Issue Type: Improvement
>          Components: CEP
>    Affects Versions: 1.4.2
>            Reporter: aitozi
>            Assignee: aitozi
>            Priority: Major
>
> Now flink cep have no support to reach a Final State upon past some time. if i use a pattern like 
> {code:java}Pattern.begin('A').notFollowedBy("B"){code}, if i want A element be emitted after 5minutes, i have no way.
> I want to introduce a timeEnd State to work with notFollowedBy to figure out with this scenior.
> It can be used like this {code:java}Pattern.begin('A').notFollowedBy("B").timeEnd("end").{code},
> [~dawidwys] [~kkl0u] Is this meaningful?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)