You should not add any output stream definition information in the
constructor, do all at the init().

Suho


On Fri, Apr 4, 2014 at 9:28 AM, Waruna Perera <[email protected]> wrote:

> Hi,
>
> I wrote a transform class in Siddhi which i wanted to return variable
> number of parameters depending on the  # of input parameters. So I got the
> input stream definition in init method to find out number of input
> parameters and added attributes to out put stream depending on that.
>
> but I found that when siddhi query returns the out put , it only takes the
> output stream parameters which are added in the constructor.
>
> I found that siddhi call updateQueryEventSourceOutDefinition method when
> adding query.
>
> package org.wso2.siddhi.core.util.parser;
> StreamParser.java
>
> In this method it only make instance of the Transformer class , but not
> call the init method.
>
> So i can not add attributes to out stream when  called in side init method
> in a Transform class.
>
> Please advice me on this.
>
> Waruna
>
>
>
>


-- 

*S. Suhothayan*
Associate Technical Lead,
 *WSO2 Inc. *http://wso2.com
* <http://wso2.com/>*
lean . enterprise . middleware


*cell: (+94) 779 756 757 | blog: http://suhothayan.blogspot.com/
<http://suhothayan.blogspot.com/>twitter: http://twitter.com/suhothayan
<http://twitter.com/suhothayan> | linked-in:
http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to