[
https://issues.apache.org/jira/browse/FLINK-6165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946745#comment-15946745
]
ASF GitHub Bot commented on FLINK-6165:
---------------------------------------
Github user kl0u commented on a diff in the pull request:
https://github.com/apache/flink/pull/3621#discussion_r108619510
--- Diff: docs/dev/libs/cep.md ---
@@ -429,6 +429,41 @@ patternState.within(Time.seconds(10));
{% endhighlight %}
</td>
</tr>
+ <tr>
+ <td><strong>Consecutive</strong></td>
+ <td>
+ <p>Works in conjunction with zeroOrMore, oneOrMore or times.
Specifies that any not matching element breaks the loop.</p>
--- End diff --
1) Mention here that the default behavior is relaxed continuity. Same for
Scala. Also the default behavior, I would also put it in the docs for
`oneToMore`, `zeroToMore`, and `times` and have a forward reference to
`consecutive`.
2) At the end where you have the example, you could also mention that in
the case of the default, we would have ...
3) And also now it is an `SimpleCondition`, not a `FilterFunction` ;)
> Implement internal continuity for looping states.
> -------------------------------------------------
>
> Key: FLINK-6165
> URL: https://issues.apache.org/jira/browse/FLINK-6165
> Project: Flink
> Issue Type: New Feature
> Components: CEP
> Reporter: Dawid Wysakowicz
> Assignee: Dawid Wysakowicz
>
> We should be able to specify an internal continuity for a looping state. The
> API could look like: {{zeroOrMore().consecutive()}}. So that we have a
> continuity up to the first element of a loop and between elements in the loop.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)