How to write query dynamically in WSO2-CEP. As in PSQL user has the option to write query dynamically, is there any alternative in CEP tool to achieve it?
Use case: 1. Suppose, if in the stream both function and data are available then there must be some option or by making some adapter user can make rules dynamically.
for ex.
steam : 1. function1:sum, function2: avg, function3: count, value1: 1, value2: 2, value3: 3 2. function1:sum, function2: min, function3: max, value1: 1, value2: 2, value3: 3
Rule should be created dynamically as following:
- select sum(value1) as value1,avg(value2) as value2, count(value3) as value 3 from ....
- select sum(value1) as value1,min(value2) as value2, max(value3) as value 3 from ....
Thanks Gagan