Hi

Unfortunately siddhi does not have an extension point to alter the
behaviour of patterns and sequences :(
If you want to do that you might have to tweak the source code [1]

But as an alternative you can extend the StreamProcessor Extension of
Siddhi, this gives you the full power of Siddhi query processing;

   - Output additional attributes upon processing
   - Drop events
   - Generate new events upon event arrival or based on schedulers
   - Ability to implement any processing logic

But this does not support different type of streams and all conditions ( A,
B, C ) need to be derived from the same stream.
For details refer docs[2] and sample implementation [3]

Do let us know if you need more help

Regards
Suho

[1]
https://github.com/wso2/siddhi/tree/master/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/query/input/stream/state
[2]
https://docs.wso2.com/display/CEP400/SiddhiQL+Guide+3.0#SiddhiQLGuide3.0-WritingCustomExtensions
[3]
https://github.com/wso2/siddhi/blob/master/modules/siddhi-extensions/timeseries/src/main/java/org/wso2/siddhi/extension/timeseries/LinearRegressionStreamProcessor.java

On Tue, Sep 29, 2015 at 3:37 PM, Jonathan Yom-Tov <[email protected]>
wrote:

> hi,
>
> I'd like to write an extension to Siddhi that changes the way it finds
> event sequences and patterns. The idea would is that I would be trying to
> find sequences/patterns in order of selectivity, not time. For example, say
> I wanted to match A->B->C, but I know that C is the rarest event, followed
> by B and A. So I would keep a buffer of events until I found a C event,
> then look for a B event in the buffer, then for an A.
>
> The problem is, I'm not sure which classes I should override/look into.
> As it's the actual pattern matching functionality I have to modify it seems
> extending Windows, Transformers, OutputAttributeProcessors, Functions is
> not the way to go. Does anyone have any pointers?
>

> thanks,
> Jon.
>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>
>


-- 

*S. Suhothayan*
Technical Lead & Team Lead of WSO2 Complex Event Processor
*WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
<http://suhothayan.blogspot.com/>twitter: http://twitter.com/suhothayan
<http://twitter.com/suhothayan> | linked-in:
http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to