Hi, Currently CEP supports API for pattern definition, but it is very similar to the Java one. Using Scala we could achieve much more concise API.
In JIRA comment for this task I've described a proposal for how this API could look like: [1] Could you please review it and write your comments? Best regards, Ivan. [1] - https://issues.apache.org/jira/browse/FLINK-3414?focusedCommentId=15404852&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15404852