Siddhi Jar没有出现在碳纤维控制台上

时间:2017-05-01 00:09:14

标签: wso2 complex-event-processing siddhi

在WSO2 CEP中,我有自定义功能正在进行一些计算;我有如下查询

String cseEventStream = "define stream eventStream (attribute string,attributeValue object);";

String query = "from eventStream#window.timeBatch(10,0)\n" +
"select timestamp,custom:function(attribute,attributeValue) as data\n" +
       "insert into outputStream;";

是否可以在Carbon Console中显示上述输入和输出事件流?

我已经尝试将jar文件放在respository / components / dropins文件夹中,但我无法在碳控制台中看到这些流。

1 个答案:

答案 0 :(得分:0)

您可以使用Siddhi Logger来记录/打印事件。你可以使用它,如下所示;

define stream eventStream (attribute string,attributeValue object);

from eventStream#window.timeBatch(10,0)#log("eventStream Event: ")
select timestamp, custom:function(attribute,attributeValue) as data 
insert into outputStream;

from outputStream#log("outputStream Event: ")
insert into tempStream;