简体   繁体   中英

Writing a Custom Condition in WSO2 CEP

I want to extend the Wso2 CEP product in our needs and try to write a custom condition as indicated in this official wso2 cep link .

However it says that "This is the latest, released WSO2 Complex Event Processor documentation (Version 2.1.0)." at the top of the page, it seems that it is outdated or having wrong information.

For example it says that,

To write a custom condition, create a class extending "org.wso2.siddhi.core.executor.conditon.AbstractGenericConditionExecutor", add the SiddhiExtionsion annotation, compile that class, and add the jar file to the class path /repertory/components/lib. Then add the fully-qualified class name for the implementation class in a new line, to the siddhi.extension file located at /repertory/conf/siddhi.

(I am assuming "repertory" is "repository"). There is no file or directory in official WSO2 CEP package as "/repertory/conf/siddhi" or "siddhi.extension", (wso2cep-2.1.0).

Is there a thing that i missed in this documentation, if not, can you recommend a new documentation about to write a custom condition in WSO2 CEP?

It is a bug, there is a folder called "sidddhi" in the , it needs to be "siddhi" (this is a small typo error).. Please change that directory name to "siddhi" and perform your task ("sidddhi" to "siddhi")...

Yes.. I have corrected the doc also with the correct "repository"... Thanks for the notification...

Regards,

Mohan

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM