On Sun, Aug 7, 2011 at 8:38 PM, Kasun Weranga <[email protected]> wrote:
> Hi,
>
> Can we do the $subject ?
> Because I have a requirement for inserting the output of an EPL statement
> to another event stream within a query and using that event stream in
> another query. Therefore in that case, I don't need to have output topic in
> my first query. But in CEP bucket, it is a mandatory field. So can we make
> that optional?
>
is this validation only happens at the schema level or do you get an
exception at the deployment?
If it does not work with an output element it should be an issue and we will
fix that.
thanks,
Amila.
>
> The following format is what I required.
>
> <query name="query1">
> <expression type="inline" listenerName="queryListener1">
> insert into stream2 select a,b,c,...,f from stream1 .....
> </expression>
> </query>
> <query name="query2">
> <expression type="inline" listenerName="queryListener2">
> select a,b,c,..,e from stream2 where a > 3 and ....
> </expression>
> <output topic="outputTopic" brokerName="localBroker">
> <xmlmapping>
> <cepData>
> <a>{a}</a>
> <b>{b}</b>
> <c>{c}</c>
> .
> .
> <e>{e}</e>
> </cepData>
> </xmlmapping>
> </output>
> </query>
>
> Thanks,
> KasunW
>
>
> --
> *Kasun Weranga*
> Software Engineer
> **
> *WSO2, Inc.
> *lean.enterprise.middleware.
> mobile : +94 772314602
> <http://sanjeewamalalgoda.blogspot.com/>blog
> :<http://sanjeewamalalgoda.blogspot.com/>
> http://kasunweranga.blogspot.com/
>
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev