flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Till Rohrmann <trohrm...@apache.org>
Subject Re: CEP two transitions to the same state
Date Tue, 20 Sep 2016 13:03:00 GMT
Hi Frank,

at the moment it is not yet fully supported to run branching patterns. This
is one thing to be added to Flink's CEP library [1].

As a workaround, you can run multiple CEP patterns, one for each path in
your branching pattern, individually. Alternatively, you can try to combine
events from different branches by using the or filter function. Or allows
you to specify alternative filter conditions.

I hope this answers your question.

[1] https://issues.apache.org/jira/browse/FLINK-4641


On Wed, Sep 14, 2016 at 5:22 PM, Frank Dekervel <kervel@gmail.com> wrote:

> Hello,
> I'm trying to model a FSM using the flink CEP patterns. However, there is
> something i can't figure out as all the documentation examples are linear
> (either you go to the single possible next state, either no match).
> Suppose that two transitions lead from one state to two different states.
> I guess this is doable by just defining multiple followedBy/next on the
> same state.
> But what about two different states that can end up in the same state (in
> the order / delivery example: suppose there are two different delivery
> methods, having a separate starting state but resulting in the same end
> state). It is possible to deduplicate the "delivered" state but this would
> lead to difficult to manage patterns when things get more complex.
> Thanks!
> greetings,
> Frank

View raw message