siddhi

WSO2 CEP Multiple rows in resultset

ぃ、小莉子 提交于 2019-12-11 10:09:17
问题 I wanted to know if the WSO2 CEP/Siddhi query supports returning multiple rows if yes how data from those rows can be mapped to the output XML ? e.g. my event stream has a field statusCode which can have values A/B/C I wanted to write a query which gives me the count by status type for past 5 mins e.g A-10,B-5,C-2.. in the current query i used group by statusCode to get the count of status MyQuery- ...insert into TestStream statusCode, count(statusCode) as count group by statusCode and my

Using Siddhi patterns for events that haven't happened

送分小仙女□ 提交于 2019-12-08 05:50:55
问题 In the CEP engine can I look for a patterns for events that haven't occurred. Editing the fraud pattern detection query: Can I fire the event if two purchases of the same card are made within one day and if the first purchase is less than $10 and the second one isn't greater than $10,000. from every (a1 = purchase[price > 10] ) NOT -> a2 = purchase [price >10000 and 1.cardNo==a2.cardNo] within 1 day insert into potentialFraud a1.cardNo as cardNo, a2.price as price, a2.place as place; Fire if