flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Till Rohrmann <trohrm...@apache.org>
Subject Re: Custom state values in CEP
Date Fri, 22 Apr 2016 09:05:39 GMT
Hi Sowmya,

I'm afraid at the moment it is not possible to store custom state in the
filter or select function. If you need access to the whole sequence of
matching events then you have to put this code in the select clause of your
pattern stream.


On Fri, Apr 22, 2016 at 7:55 AM, Sowmya Vallabhajosyula <
sowmya.v@zemosolabs.com> wrote:

> Is there a way to store a custom state value along with triggering an
> event? This would not only help in maintaining an audit of the values that
> triggered the state, but also for some complex set of conditions - for e.g.
> if the earlier state was triggered by the temperature of a patient, I do
> not want to consider temperature in the subsequent state calculation.
> At this point of time, I feel that for such a scenario I will have to go
> with Data Streaming API and manage state on my own. Is that right?
> Thanks and Regards,
> Sowmya Vallabhajosyula

View raw message