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 output XML is something like
<statusSmry>
<status>{statusCode}</status>
<count>{count}</status>
</statusSmry>
the output i receive is something like
<statusSmry>
<status>A</status>
<count>10</status>
</statusSmry>
.....
<statusSmry>
<status>B</status>
<count>5</status>
</statusSmry>
....
<statusSmry>
<status>C</status>
<count>2</status>
</statusSmry>
Is it possible to get results of query in a single XML ? i.e. in above case counts for A,B,C in a single XML ?
Thanks Rajiv