Hi Anton,

I am afraid that currently there is no such API to access the middle NFA
state in your case. For patterns that contain 'within()' condition, the
timeout events could be retrieved via TimedOutPartialMatchHandler
interface, but other unmatching events would be pruned immediately once
they are considered as unnecessary to keep.

Best,
Biao Geng


Anton Sidorov <asidoro...@gmail.com> 于2024年5月16日周四 16:12写道:

> Hello!
>
> I have a Flink Job with CEP pattern.
>
> Pattern example:
>
> // Strict Contiguity
> // a b+ c d e
> Pattern.begin("a", AfterMatchSkipStrategy.skipPastLastEvent()).where(...)
>                 .next("b").where(...).oneOrMore()
>                 .next("c").where(...)
>                 .next("d").where(...)
>                 .next("e").where(...);
>
> I have events with wrong order stream on input:
>
> a b d c e
>
> On output I haven`t any matching. But I want have access to events, that
> not matching.
>
> Can I have access to middle NFA state in CEP pattern, or get some other
> way to view unmatching events?
>
> Example project with CEP pattern on github
> <https://github.com/A-Kinski/apache-flink-cep/tree/main>, and my question
> on SO
> <https://stackoverflow.com/questions/78483004/get-access-to-unmatching-events-in-apache-flink-cep>
>
> Thanks in advance
>

Reply via email to