简体   繁体   English

在WSO2 CEP中编写自定义条件

[英]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 . 我想扩展我们的需求中的Wso2 CEP产品,并尝试编写此wso2 cep官方链接中指示的自定义条件。

However it says that "This is the latest, released WSO2 Complex Event Processor documentation (Version 2.1.0)." 但是,它说:“这是最新发布的WSO2 Complex Event Processor文档(版本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. 要编写自定义条件,请创建扩展“ org.wso2.siddhi.core.executor.conditon.AbstractGenericConditionExecutor”的类,添加SiddhiExtionsion批注,编译该类,然后将jar文件添加到类路径/ 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. 然后,在新行中将实现类的标准类名称添加到/ repertory / conf / siddhi中的siddhi.extension文件中。

(I am assuming "repertory" is "repository"). (我假设“ repretory”是“ repository”)。 There is no file or directory in official WSO2 CEP package as "/repertory/conf/siddhi" or "siddhi.extension", (wso2cep-2.1.0). 在WSO2 CEP官方软件包中没有文件或目录“ / repertory / conf / siddhi”或“ 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? 如果没有,我会在本文档中遗漏任何东西,您是否可以推荐一个新文档,以在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")... 这是一个错误,在中有一个名为“ sidddhi”的文件夹,它必须为“ siddhi”(这是一个小小的错字错误)。请将该目录名称更改为“ siddhi”并执行您的任务(“ sidddhi”到“ siddhi”)...

Yes.. I have corrected the doc also with the correct "repository"... Thanks for the notification... 是的。我也使用正确的“存储库”更正了该文档...感谢您的通知...

Regards, 问候,

Mohan 莫汉

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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