Can you try with the latest code?
https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/dependencies/commons/siddhi/2.1.0-wso2v1


On Fri, Apr 4, 2014 at 8:08 PM, Sriskandarajah Suhothayan <s...@wso2.com>wrote:

> I think then you are using an old code
> We fixed this recently.
>
> Suho
>
>
> On Fri, Apr 4, 2014 at 10:37 AM, Waruna Perera <waru...@wso2.com> wrote:
>
>> i did it in the init. but it doesn't work. in the
>> updateQueryEventSourceOutDefinition in StreamParser class doesn't call the
>> init function of Transform class. So when query returns data it takes only
>> the attributes added in the constructor.
>>
>>
>>
>>
>> On Fri, Apr 4, 2014 at 10:28 AM, Sriskandarajah Suhothayan <s...@wso2.com
>> > wrote:
>>
>>> 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 <waru...@wso2.com> 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 <%28%2B94%29%20779%20756%20757> | 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>*
>>>
>>>
>>
>
>
> --
>
> *S. Suhothayan*
> Associate Technical Lead,
>  *WSO2 Inc. *http://wso2.com
> * <http://wso2.com/>*
> lean . enterprise . middleware
>
>
> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | 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>*
>
>


-- 

*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
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to