siddhi

Siddhi Error connecting to JMS provider

风格不统一 提交于 2020-06-29 04:48:09
问题 I tried to send events from WSO2 SP to activeMQ via siddhi-io-jms extension, but i have following error. Error connecting to JMS provider. NamingException while obtaining initial context. I have followed this doc for support jms transporting https://docs.wso2.com/display/SP400/Supporting+Different+Transports, put all necessary jar files to lib, also I set correctly @sink in siddhi app, factory.initial and provider.url are correct. Any idea, why SP can't connect to jms? 回答1: According to OSGi

Unable to handle responses using 'regex' http.status.code in Siddhi

天大地大妈咪最大 提交于 2020-01-25 07:57:05
问题 Unable to handle responses using, for response 500: @source(type='http-response', sink.id = 'serviceActivate', http.status.code = '5\d+', @map(type = 'json', @attributes(result = '$.result'))) or @source(type='http-response', sink.id = 'serviceActivate', http.status.code = '[2|4|5]00', @map(type = 'json', @attributes(result = '$.result'))) I see an error: [2019-12-19 11:35:06,221] ERROR {org.wso2.extension.siddhi.io.http.source.HttpResponseMessageListener} - No source of type 'http-response'

WSO2 CEP : Siddhi QL: Creating a unique stream with similar event records

*爱你&永不变心* 提交于 2020-01-07 03:11:30
问题 I am pretty new to WSO2 CEP Siddhi QL, I got a requirement to analyze the events coming to a stream. For ex: I have data coming in like this [id,value]: InputStream=[1001,90] InputStream=[1001,85] InputStream=[1002,70] InputStream=[1001,85] InputStream=[1003,70] InputStream=[1003,85] InputStream=[1002,70] InputStream=[1003,70] InputStream=[1003,85] InputStream=[1002,70] InputStream=[1001,95] InputStream=[1001,65] In this, I want to segregate each records and group based on the id 1001, 1002

How to implement execution plans using siddhi?

寵の児 提交于 2020-01-06 19:51:21
问题 First of all let me description my requirement: data.csv : column one is id,column two is vlaue. 1,0 2,0 3,0 4,86 5,87 6,88 7,89 8,86 9,0 10,0 11,0 12,0 13,0 14,86 15,87 16,88 17,89 18,0 19,0 20,0 here is my InputStream and my OutPutStream : id int,value int data.csv will insert into InputStream by using Event Stream Simulator . If there are five consecutive value>=85, I would record the first id,value into OutPutStream . For example,I will record id=4,value=86 ,but id=14 to id=17 i will

How to implement execution plans using siddhi?

安稳与你 提交于 2020-01-06 19:50:59
问题 First of all let me description my requirement: data.csv : column one is id,column two is vlaue. 1,0 2,0 3,0 4,86 5,87 6,88 7,89 8,86 9,0 10,0 11,0 12,0 13,0 14,86 15,87 16,88 17,89 18,0 19,0 20,0 here is my InputStream and my OutPutStream : id int,value int data.csv will insert into InputStream by using Event Stream Simulator . If there are five consecutive value>=85, I would record the first id,value into OutPutStream . For example,I will record id=4,value=86 ,but id=14 to id=17 i will

No Extension Exists for pmml:predict WSO2 Stream Processor

一世执手 提交于 2019-12-24 09:08:36
问题 I am following the WSO2 Stream Processor Studio tutorials to practice Siddhi. So far I've managed to troubleshoot all the bugs incorporated in the tutorials; however, I'm stuck on the 12th tutorial, "Making Real-Time Predictions." The Siddhi application is @App:name("SugarSyrupPredictionApp") @app:description("Making real-time predictions tutorial 12") @source(type='http', receiver.url='http://localhost:5006/SugarSyrupEP', @map(type = 'json')) define stream SugarSyrupDataStream (temperature

Handling null values with wso2 CEP

可紊 提交于 2019-12-24 01:44:18
问题 I want to update event table (RDBMS) using additional condition that one column in that is not null. Table name is MSISDNProfileDB and it's in oracle db. from incomingStream#window.length(1) select correlation_MSISDN as MSISDN, INTERACTION_DT as INTERACTION_DT update MSISDNProfileDB on MSISDNProfileDB.MSISDN == MSISDN and not(MSISDNProfileDB.column1 is null); it validates the code, but does not update INTERACTION_DT. For testing purposes, I changed it to check if the column is null, and

How to describe this complex scene by cep?

喜夏-厌秋 提交于 2019-12-13 08:10:26
问题 This is my Event schema EventA (FieldA string, FieldB string, FiledC string) EventB (FieldD string, FieldE string) I want the query like: devide events into group window, group EventA by FieldA, FieldB ,group EventB by FieldE If events occured in this order: EventA -> EventA -> EventA -> EventB -> EventB ,and distinct( EventA.FieldC ) >= 3 ,and every EventB.FieldE equals every EventA.FieldB (join part),then generate a correlate event. The problem is that:the count of EventA (3) is for the

WSO2 CEP - Single Event Table for Multiple Execution PLans

只谈情不闲聊 提交于 2019-12-13 07:03:40
问题 I have been exploring WSO2 CEP for last couple of days. I am considering a scenario where a single lookup table could be used in multiple execution plans. As far as I know, only way to store data all data is event table. My questions are: Can I load an event table once(may be by one execution plan) and share that table with other execution plans? If answer of Q1 is NO, then it will be multiple copies of same data storing in different execution plans, right ? Is there any way to reduce this

How can i pick out value from consecutive value of event by using siddhi

帅比萌擦擦* 提交于 2019-12-12 02:21:36
问题 for example, that is data: 1,1470732420000,0 2,1470732421000,0 3,1470732422000,0 4,1470732423000,86 5,1470732424000,87 6,1470732425000,88 7,1470732426000,84 8,1470732427000,0 9,1470732428000,0 10,1470732429000,0 11,1470732430000,89 12,1470732431000,89 13,1470732432000,87 14,1470732433000,89 15,1470732434000,85 16,1470732435000,89 17,1470732436000,89 18,1470732437000,87 19,1470732438000,86 20,1470732439000,88 21,1470732440000,0 22,1470732441000,0 23,1470732442000,0 24,1470732443000,87 25