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

Frank Dekervel commented on FLINK-4641:
---------------------------------------

i think the second option would made it hard to nest branching patterns ?
will method chaining keep working when doing more complex state transition 
hierarchies? (i think supporting cyclic patterns like the following is out of 
scope for this ticket)

eg (trying to make up a more complex example) suppose that one of the branches 
is two states K and B, and the system can go from one state back to the other, 
and the C state can be followedBy the D state, but if D happens after K, it 
should be next not followedby...

{noformat}
 
.         |<---|
.    |--> B -- K--|
A -- |            |-->D
.    |--> C ------|

{noformat}

(would maybe only be useful together with an implementation for #3703)

Frank


> Support branching CEP patterns 
> -------------------------------
>
>                 Key: FLINK-4641
>                 URL: https://issues.apache.org/jira/browse/FLINK-4641
>             Project: Flink
>          Issue Type: Improvement
>          Components: CEP
>            Reporter: Till Rohrmann
>
> We should add support for branching CEP patterns to the Pattern API. 
> {code}
>     |--> B --|
>     |        |
> A --         --> D
>     |        |
>     |--> C --|
> {code}
> This feature will require changes to the {{Pattern}} class and the 
> {{NFACompiler}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to